Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

2018-07 Security Bulletin: Junos OS: QFX5200 and QFX10002: Unintended ONIE partition was shipped with certain Junos OS .bin and .iso images (CVE-2018-0035)



Article ID: JSA10869 SECURITY_ADVISORIES Last Updated: 11 Jul 2018Version: 2.0
Product Affected:
This issue affects Junos OS 15.1X53. Affected platforms: QFX5200 and QFX10002.
QFX5200 and QFX10002 devices that have been shipped with Junos OS 15.1X53-D21, 15.1X53-D30, 15.1X53-D31, 15.1X53-D32, 15.1X53-D33 and 15.1X53-D60 or have been upgraded to these releases using the .bin or .iso images may contain an unintended additional Open Network Install Environment (ONIE) partition.
This additional partition allows the superuser to reboot to the ONIE partition which will wipe out the content of the Junos partition and its configuration.
Once rebooted, the ONIE partition will not have root password configured, thus any user can access the console or SSH, using an IP address acquired from DHCP, as root without password.
Customer can identify whether their device is affected by running the following commands from the Junos OS shell:

Affected System :
root@:RE:0% rsh -l root -JU __juniper_private4__
root@:RE:0~# grub-fstest /dev/sda2 ls /var/tmp /onie/ | grep onie                      
vmlinuz-3.2.35-onie initrd.img-3.2.35-onie tools/ grub/ grub.d/                                         
Note: the two files, vmlinuz-3.2.35-onie and initrd.img-3.2.35-onie (version may vary) will be present.

Non-affected System:
root@:RE:0% rsh -l root -JU __juniper_private4__                            
root@local-node:~# grub-fstest /dev/sda2 ls /onie/ | grep onie
Note: no grep output related to ONIE partition.

Once the device has been shipped or upgraded with the ONIE partition installed, the issue will persist. Simply upgrading to higher release via the CLI will not resolve the issue.

No other Juniper Networks products or platforms are affected by this issue.
Juniper SIRT is not aware of any malicious exploitation of this vulnerability.

This issue was found during internal product security testing or research.

This issue has been assigned CVE-2018-0035.
In order to resolve this issue (remove the ONIE partition from the device), customer needs to reimage the device using the USB or PXE image from the Juniper download page.
The affected Junos image files have been removed from the Juniper download page.
Note: Juniper SIRT's policy is not to evaluate releases which are beyond End of Engineering (EOE) or End of Life (EOL).
There are no known workarounds for this issue.

It is good security practice to limit the exploitable attack surface of critical infrastructure networking equipment. Use access lists or firewall filters to limit access to device only from trusted, administrative networks or hosts. Limit CLI access to the device from only trusted hosts and administrators.
Software Releases, patches and updates are available at
Modification History:
2018-07-11: Initial Publication.
CVSS Score:
4.4 (CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H)
Severity Level:
Severity Assessment:
Information for how Juniper Networks uses CVSS can be found at KB 16446 "Common Vulnerability Scoring System (CVSS) and Juniper's Security Advisories."

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search