Skip to content

CVE-2025-59957 Junos OS: EX4600 Series and QFX5000 Series: An attacker with physical access can open a persistent backdoor

HighCVSS 7.0 EPSS 0.18%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
Network Appliances

Description

An Origin Validation Error vulnerability in an insufficient protected file of Juniper Networks Junos OS on EX4600 Series and QFX5000 Series allows an unauthenticated attacker with physical access to the device to create a backdoor which allows complete control of the system.

When a device isn't configured with a root password, an attacker can modify a specific file. It's contents will be added to the Junos configuration of the device without being visible. This allows for the addition of any configuration unknown

to the actual operator, which includes users, IP addresses and other configuration which could allow unauthorized access to the device.
This exploit is persistent across reboots and even zeroization.

The indicator of compromise is a modified /etc/config/<platform>-defaults[-flex].conf file. Review that file for unexpected configuration statements, or compare it to an unmodified version which can be extracted from the original Juniper software image file. For details on the extraction procedure please contact Juniper Technical Assistance Center (JTAC).

To restore the device to a trusted initial configuration the system needs to be reinstalled from physical media. 

This issue affects Junos OS on EX4600 Series and QFX5000 Series:

  • All versions before 21.4R3,
  • 22.2 versions before 22.2R3-S3.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
juniper junos < 21.4; = 21.4; = 21.4-r1; = 21.4-r1-s1 +14 more 21.4 Fixed
juniper Junos OS < 21.4R3; >= 22.2, < 22.2R3-S3 21.4R3, 22.2R3-S3 Fixed

Affected products

ProductAffected versionsFixed in
juniper Junos OS < 21.4R3 21.4R3
juniper Junos OS >= 22.2, < 22.2R3-S3 22.2R3-S3
juniper junos < 21.4 21.4
juniper junos = 21.4 No fix listed
juniper junos = 21.4-r1 No fix listed
juniper junos = 21.4-r1-s1 No fix listed
juniper junos = 21.4-r1-s2 No fix listed
juniper junos = 21.4-r2 No fix listed
juniper junos = 21.4-r2-s1 No fix listed
juniper junos = 21.4-r2-s2 No fix listed
juniper junos = 22.2 No fix listed
juniper junos = 22.2-r1 No fix listed
juniper junos = 22.2-r1-s1 No fix listed
juniper junos = 22.2-r1-s2 No fix listed
juniper junos = 22.2-r2 No fix listed
juniper junos = 22.2-r2-s1 No fix listed
juniper junos = 22.2-r2-s2 No fix listed
juniper junos = 22.2-r3 No fix listed
juniper junos = 22.2-r3-s1 No fix listed
juniper junos = 22.2-r3-s2 No fix listed

References