CVE-2018-0008Junos OS: commit script may allow unauthenticated root login upon reboot
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
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by juniper, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Juniper Networks Junos OS: affected: 12.1X46 to before 12.1X46-D71, 12.3X48 to before 12.3X48-D55, 15.1X49 to before 15.1X49-D110; fixed in
12.1X46-D71,12.3X48-D55,15.1X49-D110 - Juniper Networks Junos OS: affected: 14.1 to before 14.1R9, 14.2 to before 14.2R7-S9, 14.2R8, 15.1 to before 15.1F5-S7, 15.1F6-S8, 15.1R5-S6, 15.1R6, 16.1 to before 16.1R2; fixed in
14.1R9,16.1R2 - Juniper Networks Junos OS: affected: 14.1X53 to before 14.1X53-D40; fixed in
14.1X53-D40 - Juniper Networks Junos OS: affected: 15.1X53 to before 15.1X53-D232; fixed in
15.1X53-D232 - Juniper Networks Junos OS: affected: 15.1X53 to before 15.1X53-D49, 15.1X53-D470
- Juniper Networks Junos OS: affected: 15.1X53 to before 15.1X53-D65; fixed in
15.1X53-D65
Solution: The following software releases have been updated to resolve this specific issue: 12.1X46-D71, 12.3X48-D55, 14.1R9, 14.1X53-D40, 14.2R7-S9, 14.2R8, 15.1F5-S7, 15.1R5-S6, 15.1R6, 15.1X49-D110, 15.1X53-D232, 15.1X53-D65, 16.1R2, 16.2R1 and all subsequent releases.
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.
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.