CVE-2018-0008

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

6.2 medium EPSS 0.45%

Published 10 Jan 2018 Updated 16 Sep 2024 CNA: juniper

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.

Severity (CVSS)

6.2 medium CVSS 3.0 from juniper (CNA)
CVSS:3.0/AV:P/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
physical: the attacker has to touch the device
Attack complexity
low: an attack works without special conditions
Privileges required
high: the attacker needs an administrative account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 31.2% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Junos OS
affected from 12.1X46, before 12.1X46-D71
affected from 12.3X48, before 12.3X48-D55
affected from 15.1X49, before 15.1X49-D110
Junos OS
affected from 14.1, before 14.1R9
affected from 14.2, before 14.2R7-S9, 14.2R8
affected from 15.1, before 15.1F5-S7, 15.1F6-S8, 15.1R5-S6, 15.1R6
affected from 16.1, before 16.1R2
Junos OS
affected from 14.1X53, before 14.1X53-D40
Junos OS
affected from 15.1X53, before 15.1X53-D232
Junos OS
affected from 15.1X53, before 15.1X53-D49, 15.1X53-D470
Junos OS
affected from 15.1X53, before 15.1X53-D65

Is my server affected?

This CVE is in Junos OS of Juniper Networks, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Advisories

Other references

Source: the record CVE-2018-0008 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.