Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2018-0008

MEDIUM 6.2EPSS 31%

Junos OS: commit script may allow unauthenticated root login upon reboot

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.

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

Vulnerability facts

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.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
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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.2 (v3.0, CNA)CVSS:3.0/AV:P/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.45% chance of exploitation in 30 days (percentile 31, 2026-11-26)
CWE
CWE-287
Published
Modified

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

Package / productAffectedFixedSource
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors