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

Medium 6.2 Published Updated

Unauthenticated root access via console after reboot when specific commit scripts are configured, allowing full device control.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-0008?

CVE-2018-0008 is a medium-severity authentication bypass vulnerability in Juniper Junos, published on 10 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-287

Which versions are affected by CVE-2018-0008?

It affects 1 product.

Products include Juniper Junos.

How do I fix CVE-2018-0008?

No fix has been published for CVE-2018-0008 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2018-0008 being exploited?

There is no known exploitation of CVE-2018-0008 in the wild and no public exploit code.

All Juniper Junos vulnerabilities

Sources

Also known as GHSA-95c8-g3xm-ffh5.

Is CVE-2018-0008 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free