Juniper Junos OS
CVE-2025-59957
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain physical access to switch
-
DeliveryModify unprotected defaults config file
-
ExploitInject hidden backdoor configuration
-
ExecutionConfig silently merged into Junos
-
ImpactPersistent stealth control across reboot/zeroization
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Requires two concrete conditions: (1) PHYSICAL access to the EX4600 Series or QFX5000 Series device, and (2) the device must NOT have a root password configured - this unprotected state is what allows the attacker to modify /etc/config/<platform>-defaults[-flex].conf so its contents are silently appended to the Junos configuration. Limiting factors that reduce realistic risk: exploitation is impossible remotely or over the network, requires hands-on device access, and is neutralized by simply setting a root password; it does not require user interaction or prior authentication once physical access is obtained. The compromise is persistent across reboots and zeroization, so only reinstallation from physical media restores a trusted state. |
| Impact | This is a high-severity but operationally narrow issue. The CVSS 4.0 vector (AV:P) confirms exploitation requires PHYSICAL access to the EX4600/QFX5000 device, which is the single most significant risk-limiting factor and is the primary reason the base score is 7.0 rather than critical despite VC:H/VI:H/VA:H (full confidentiality, integrity, and availability compromise). EPSS strongly corroborates the low real-world urgency: 0.18% probability at the 7th percentile, consistent with a physical-access vulnerability that cannot be exploited remotely or at scale. The vulnerability is NOT in CISA KEV and no public exploit code was provided in the input, so there is no evidence of active exploitation - no public exploit identified at time of analysis. The signals are therefore internally consistent rather than conflicting: high technical impact but low exploitation probability due to the physical-access barrier. The genuinely alarming dimensions are impact-related, not likelihood-related: the injected backdoor is invisible to the operator and PERSISTS across reboots AND zeroization, meaning standard factory-reset remediation does not clean it (reinstall from physical media is required). One nuance to verify: the input CVSS marks PR:N (no privileges), yet exploitation depends on the device having no root password configured - this is a deployment-state precondition rather than a privilege, so PR:N is defensible but defenders should treat 'no root password set' as the true gating condition. Net: a real priority only for organizations where physical access to these switches is plausible (shared racks, remote/edge sites, supply-chain/pre-staging, insider risk); for physically controlled data centers it is low practical risk. |
| Exploit ScenarioDerived | An attacker with brief physical access to an EX4600 or QFX5000 switch that has no root password configured modifies the /etc/config/<platform>-defaults[-flex].conf file, injecting configuration (e.g. a hidden user account or management IP) that Junos silently merges into the running configuration without displaying it to the operator. Because low attack complexity (AC:L) and no authentication are involved once physical access is obtained, the attacker gains a stealthy, persistent backdoor that survives reboots and even zeroization. No public exploit code was identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
An unauthenticated attacker with physical access to an EX4600 Series or QFX5000 Series switch running Junos OS can plant a persistent backdoor by editing the platform defaults file processed at boot, silently injecting arbitrary configuration (including rogue users and IP addresses) into the device's Junos configuration. Two conditions are required: hands-on access to the hardware and a device left without a configured root password - there is no remote or network attack path and no user interaction is needed once physical access is obtained. The compromise survives reboots and even zeroization, so restoring trust requires reinstallation from physical media; EPSS is low (0.18%, 7th percentile) and no public exploit has been identified at time of analysis, consistent with the narrow physical-access prerequisite rather than an absence of impact.
RemediationAI
Upgrade to a fixed release - Junos OS 21.4R3 or later, or 22.2R3-S3 or later for the 22.2 branch - per Juniper advisory JSA103146 (https://supportportal.juniper.net/JSA103146); this is the vendor-released fix for the affected EX4600 Series and QFX5000 Series platforms. As a compensating control, configure a root password on every affected device: the advisory states the attack only works when no root password is set, so this single hardening step closes the exploitable precondition, although it does not remove any backdoor already planted and has the operational side effect of introducing another credential to manage and protect. To detect prior compromise, inspect /etc/config/<platform>-defaults[-flex].conf for unexpected configuration statements or diff it against the unmodified file extracted from the original Juniper software image (Juniper states the extraction procedure is available through JTAC). Because the injected configuration persists across reboots and zeroization, an already-compromised device cannot be cleaned through normal configuration rollback or wipe procedures and must be reinstalled/format-installed from physical media using the published EX/QFX USB procedure (https://supportportal.juniper.net/s/article/EX-QFX-Procedure-to-format-install-QFX5K-device-using-a-USB); treat that reinstall as mandatory rather than optional for any device showing the modified defaults file. Physical security controls - locked wiring closets, rack access logs, tamper-evident seals, and controlled console/physical port access - reduce the physical-access prerequisite but are not vendor-guaranteed mitigations and should be layered with the root-password setting and patching.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-346 (Origin Validation Error): Junos OS on EX4600 Series and QFX5000 Series fails to adequately validate the origin/integrity of /etc/config/<platform>-defaults[-flex].conf, a platform defaults file that the system consumes when building the running Junos configuration. Because this file is insufficiently protected on devices where no root password is set, an attacker with physical access can write to it, and its contents are merged into the Junos configuration without appearing in the normal configuration visible to the operator - an origin/trust-boundary failure rather than a memory-safety or network-facing bug. The assessment vector (CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, 7.0 base) confirms the Physical attack vector, no privileges or user interaction required, and high confidentiality, integrity, and availability impact confined to the device (scope unchanged). CPE data ties the issue to Juniper Junos branches 21.4 (including R1, R1-S1, R1-S2, R2, R2-S1, R2-S2) and 22.2 (including R1), and the underlying platform is the EX4600/QFX5000 fixed-config Ethernet switch family. Persistence across reboot and zeroization indicates the injected state is captured in a file that boot-time configuration assembly re-applies, which is why the reference material points to a full format-and-reinstall via USB to return the device to a trusted state.
Know when Junos gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:U/RE:H
Physical access only (AV:P); no device auth needed once physical (PR:N), with 'no root password set' as a precondition kept at AC:L per vendor; full C/I/A loss from a hidden persistent backdoor.
Primary rating from Vendor (juniper).
CVSS VectorVendor: juniper
DescriptionCVE.org
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.
Executive ViewAI
Juniper EX4600 and QFX5000 Series switches deployed in our data-center fabric can be silently reprogrammed by anyone who gains brief hands-on access to the hardware, allowing a hidden backdoor that survives reboots and even factory zeroization. The exposure is limited to devices that are physically reachable and left without a configured root password, but where those conditions exist, a single visit by an insider, contractor, or intruder could leave rogue accounts and network routes that our normal monitoring would not detect. Because the implanted configuration cannot be cleared remotely, restoring trust in an affected switch requires physically reinstalling it, so leadership should treat this as a data-center physical-security and asset-hygiene issue with potentially prolonged remediation downtime.
No vendor-released patch identified at time of analysis. Interim mitigations: configure and enforce a strong root password on every EX4600 and QFX5000 Series switch to remove the required precondition; enforce strict physical access control, escort policies, and tamper-evident seals on all locations housing these devices; monitor and baseline Junos configurations for unauthorized users, credentials, or IP addresses; and reinstall from trusted physical media on any device with confirmed or suspected tampering, since the implant survives reboots and zeroization.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
named in ISC BIND 9.x before 9.9.8-P4 and 9.10.x before 9.10.3-P4 does not properly handle DNAME records when parsing fe
named in ISC BIND 9.x before 9.9.8-P4 and 9.10.x before 9.10.3-P4 allows remote attackers to cause a denial of service (
A security vulnerability in An Improper (CVSS 6.7) that allows a local attacker with high privileges. Risk factors: acti
A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series and SRX Series all
jsdm/ajax/port.php in J-Web in Juniper Junos before 10.4R13, 11.4 before 11.4R7, 12.1 before 12.1R5, 12.2 before 12.2R3,
Juniper Junos 11.4 before R11, 12.1 before R9, 12.1X44 before D30, 12.1X45 before D20, 12.1X46 before D15, 12.1X47 befor
NFX Series devices using Juniper Networks Junos OS are susceptible to a local command execution vulnerability thereby al
NFX Series devices using Juniper Networks Junos OS are susceptible to a local code execution vulnerability thereby allow
Insufficient validation of environment variables in the telnet client supplied in Junos OS can lead to stack-based buffe
An Out-of-Bounds Write vulnerability in the H.323 ALG of Juniper Networks Junos OS allows an unauthenticated, network-ba
On QFX10000 Series devices using Juniper Networks Junos OS when configured as transit IP/MPLS penultimate hop popping (P
A Missing Release of Memory after Effective Lifetime vulnerability in the kernel of Juniper Networks Junos OS allows an
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB