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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.0, CNA) `CVSS:3.0/AV:P/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-287
- **Published:** 2018-01-10T22:00:00.000Z
- **Modified:** 2026-06-17T01:29:22.523Z

## Who should check

- Anyone running Juniper Networks Junos OS \>= 12.1X46, \< 12.1X46-D71; \>= 12.3X48, \< 12.3X48-D55; \>= 15.1X49, \< 15.1X49-D110
- Anyone running Juniper Networks Junos OS \>= 14.1, \< 14.1R9; \>= 14.2, \< 14.2R7-S9, 14.2R8; \>= 15.1, \< 15.1F5-S7, 15.1F6-S8, 15.1R5-S6, 15.1R6; \>= 16.1, \< 16.1R2
- Anyone running Juniper Networks Junos OS \>= 14.1X53, \< 14.1X53-D40
- Anyone running Juniper Networks Junos OS \>= 15.1X53, \< 15.1X53-D232
- Anyone running Juniper Networks Junos OS \>= 15.1X53, \< 15.1X53-D49, 15.1X53-D470
- Anyone running Juniper Networks Junos OS \>= 15.1X53, \< 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.

## Affected and fixed versions

- Juniper Networks Junos OS: \>= 12.1X46, \< 12.1X46-D71; \>= 12.3X48, \< 12.3X48-D55; \>= 15.1X49, \< 15.1X49-D110 (cvelist)
- Juniper Networks Junos OS: \>= 14.1, \< 14.1R9; \>= 14.2, \< 14.2R7-S9, 14.2R8; \>= 15.1, \< 15.1F5-S7, 15.1F6-S8, 15.1R5-S6, 15.1R6; \>= 16.1, \< 16.1R2 (cvelist)
- Juniper Networks Junos OS: \>= 14.1X53, \< 14.1X53-D40 (cvelist)
- Juniper Networks Junos OS: \>= 15.1X53, \< 15.1X53-D232 (cvelist)
- Juniper Networks Junos OS: \>= 15.1X53, \< 15.1X53-D49, 15.1X53-D470 (cvelist)
- Juniper Networks Junos OS: \>= 15.1X53, \< 15.1X53-D65 (cvelist)

## Mitigation

- Upgrade Junos OS to 15.1X49-D110 or later.
- Upgrade Junos OS to 16.1R2 or later.
- Upgrade Junos OS to 14.1X53-D40 or later.
- Upgrade Junos OS to 15.1X53-D232 or later.
- Upgrade Junos OS to 15.1X53-D65 or later.
- Vendor workaround: While there is no published workaround for this issue, customer can verify whether their commit script contains the affected configuration by rebooting the device. Please contact JTAC if after the reboot the device enters a state where root CLI login is allowed without a password.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-0008. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-0008.md
Affected: Juniper Networks Junos OS >= 12.1X46, < 12.1X46-D71; >= 12.3X48, < 12.3X48-D55; >= 15.1X49, < 15.1X49-D110; Juniper Networks Junos OS >= 14.1, < 14.1R9; >= 14.2, < 14.2R7-S9, 14.2R8; >= 15.1, < 15.1F5-S7, 15.1F6-S8, 15.1R5-S6, 15.1R6; >= 16.1, < 16.1R2; Juniper Networks Junos OS >= 14.1X53, < 14.1X…
Fixed in: Juniper Networks Junos OS 12.1X46-D71, Juniper Networks Junos OS 12.3X48-D55, Juniper Networks Junos OS 15.1X49-D110, Juniper Networks Junos OS 14.1R9, Juniper Networks Junos OS 14.2R7-S9, Juniper Networks Junos OS 15.1F5-S7, Juniper Networks Junos OS 16.1R2, Juniper Networks Junos OS 14.1X53-D40, …

Steps:
1. Search this machine and project for Juniper Networks Junos OS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-0008 being exploited?

There is no confirmed exploitation: CVE-2018-0008 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-0008?

Medium: CVSS 6.2 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2018-0008?

Juniper Networks Junos OS \>= 12.1X46, \< 12.1X46-D71; \>= 12.3X48, \< 12.3X48-D55; \>= 15.1X49, \< 15.1X49-D110; Juniper Networks Junos OS \>= 14.1, \< 14.1R9; \>= 14.2, \< 14.2R7-S9, 14.2R8; \>= 15.1, \< 15.1F5-S7, 15.1F6-S8, 15.1R5-S6, 15.1R6; \>= 16.1, \< 16.1R2; Juniper Networks Junos OS \>= 14.1X53, \< 14.1X53-D40; Juniper Networks Junos OS \>= 15.1X53, \< 15.1X53-D232; Juniper Networks Junos OS \>= 15.1X53, \< 15.1X53-D49, 15.1X53-D470; Juniper Networks Junos OS \>= 15.1X53, \< 15.1X53-D65.

### Is there a fix for CVE-2018-0008?

Yes. Fixed in Juniper Networks Junos OS 12.1X46-D71, Juniper Networks Junos OS 12.3X48-D55, Juniper Networks Junos OS 15.1X49-D110, Juniper Networks Junos OS 14.1R9, Juniper Networks Junos OS 14.2R7-S9, Juniper Networks Junos OS 15.1F5-S7, Juniper Networks Junos OS 16.1R2, Juniper Networks Junos OS 14.1X53-D40, Juniper Networks Junos OS 15.1X53-D232, Juniper Networks Junos OS 15.1X53-D49, Juniper Networks Junos OS 15.1X53-D65. Upgrade Junos OS to 15.1X49-D110 or later. Upgrade Junos OS to 16.1R2 or later. Upgrade Junos OS to 14.1X53-D40 or later. Upgrade Junos OS to 15.1X53-D232 or later. Upgrade Junos OS to 15.1X53-D65 or later. Vendor workaround: While there is no published workaround for this issue, customer can verify whether their commit script contains the affected configuration by rebooting the device. Please contact JTAC if after the reboot the device enters a state where root CLI login is allowed without a password.

### How do I check if I'm affected by CVE-2018-0008?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-0008>

HTML: <https://flawdb.com/CVE-2018-0008> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-0008>
