Junos OS: EX4600 Series and QFX5000 Series: An attacker with physical access can open a persistent backdoor
Key facts
- Attack vector
- Physical
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-346.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Juniper | Junos OS | before 21.4R3; 22.2 to before 22.2R3-S3 | 21.4R3, 22.2R3-S3 | Patch available | CNA |
- Junos OS VendorJuniper Affected before 21.4R3; 22.2 to before 22.2R3-S3 Fixed in 21.4R3, 22.2R3-S3 Patch available CNA
CPE configurations NVD · 30
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:juniper:junos:*:*:*:*:*:*:*:* | before 21.4 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:-:*:*:*:*:*:* | 21.4 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r1:*:*:*:*:*:* | 21.4 r1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r1-s1:*:*:*:*:*:* | 21.4 r1-s1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r1-s2:*:*:*:*:*:* | 21.4 r1-s2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r2:*:*:*:*:*:* | 21.4 r2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r2-s1:*:*:*:*:*:* | 21.4 r2-s1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r2-s2:*:*:*:*:*:* | 21.4 r2-s2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:-:*:*:*:*:*:* | 22.2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r1:*:*:*:*:*:* | 22.2 r1 | Vulnerable | Juniper |
- cpe:2.3:o:juniper:junos:*:*:*:*:*:*:*:* Versions before 21.4 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:-:*:*:*:*:*:* Versions 21.4 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r1:*:*:*:*:*:* Versions 21.4 r1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r1-s1:*:*:*:*:*:* Versions 21.4 r1-s1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r1-s2:*:*:*:*:*:* Versions 21.4 r1-s2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r2:*:*:*:*:*:* Versions 21.4 r2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r2-s1:*:*:*:*:*:* Versions 21.4 r2-s1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r2-s2:*:*:*:*:*:* Versions 21.4 r2-s2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:-:*:*:*:*:*:* Versions 22.2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r1:*:*:*:*:*:* Versions 22.2 r1 Vulnerable ·Juniper
Show 20 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:juniper:junos:22.2:r1-s1:*:*:*:*:*:* | 22.2 r1-s1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r1-s2:*:*:*:*:*:* | 22.2 r1-s2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r2:*:*:*:*:*:* | 22.2 r2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r2-s1:*:*:*:*:*:* | 22.2 r2-s1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r2-s2:*:*:*:*:*:* | 22.2 r2-s2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r3:*:*:*:*:*:* | 22.2 r3 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r3-s1:*:*:*:*:*:* | 22.2 r3-s1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:22.2:r3-s2:*:*:*:*:*:* | 22.2 r3-s2 | Vulnerable | Juniper |
| cpe:2.3:h:juniper:ex4600:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:ex4650:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5110:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5120:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5130:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5200:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5210:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5220:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5230-64cd:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5240:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5241:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
| cpe:2.3:h:juniper:qfx5700:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Juniper |
- cpe:2.3:o:juniper:junos:22.2:r1-s1:*:*:*:*:*:* Versions 22.2 r1-s1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r1-s2:*:*:*:*:*:* Versions 22.2 r1-s2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r2:*:*:*:*:*:* Versions 22.2 r2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r2-s1:*:*:*:*:*:* Versions 22.2 r2-s1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r2-s2:*:*:*:*:*:* Versions 22.2 r2-s2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r3:*:*:*:*:*:* Versions 22.2 r3 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r3-s1:*:*:*:*:*:* Versions 22.2 r3-s1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:22.2:r3-s2:*:*:*:*:*:* Versions 22.2 r3-s2 Vulnerable ·Juniper
- cpe:2.3:h:juniper:ex4600:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:ex4650:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5110:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5120:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5130:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5200:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5210:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5220:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5230-64cd:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5240:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5241:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
- cpe:2.3:h:juniper:qfx5700:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Juniper
Remediation
- Fix · CNA Junos OS (Juniper Networks) Fixed in 21.4R3, 22.2R3-S3
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59957
- 2026-10-03 Alias added: GHSA-f6j3-wrc2-m228
References
More Juniper Junos vulnerabilities
- TI-2023-18638 Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to… KEVCVSS 3.1CRITICAL 9.8
- TI-2020-01585 Out of Cycle Security Advisory: Junos OS: Security vulnerability in J-Web and web based (HTTP/HTTPS) services KEVCVSS 3.1CRITICAL 9.8
- TI-2015-04610 Assertion failure in ISC BIND named via TKEY queries KEVCVSS 3.1HIGH 7.5
- TI-2025-15550 Junos OS: An local attacker with shell access can execute arbitrary code KEVCVSS 4.0MEDIUM 6.7
- TI-2023-18644 Junos OS: SRX Series: A vulnerability in J-Web allows an unauthenticated attacker to upload and download arbitrary files KEVCVSS 3.1MEDIUM 5.3
- TI-2023-18640 Junos OS: EX Series: A vulnerability in J-Web allows an unauthenticated attacker to upload arbitrary files KEVCVSS 3.1MEDIUM 5.3
Sources
- CVE-2025-59957 · CVE Program
- CVE-2025-59957 · NVD
- FIRST EPSS
- GHSA-f6j3-wrc2-m228 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences