CVE-2025-59957
Last modified
CVE-2025-59957 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:N/R:U/V:X/RE:H/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Juniper | Junos | < 21.4 |
| Juniper | Junos | 21.4 |
| Juniper | Junos | 22.2 |
References
- https://support.juniper.net/support/requesting-support/Vendor Advisory
- https://supportportal.juniper.net/JSA103146Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-59957?
How severe is CVE-2025-59957?
How do I fix CVE-2025-59957?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-59950FreshRSS is a free, self-hostable RSS aggregator. In version…5.4
- CVE-2025-59951Termix is a web-based server management platform with SSH te…9.1
- CVE-2025-59952MinIO Java SDK is a Simple Storage Service (aka S3) client t…8.7
- CVE-2025-59954Knowage is an open source analytics and business intelligenc…9.8
- CVE-2025-59955Coolify is an open-source and self-hostable tool for managin…5.7
- CVE-2025-59956AgentAPI is an HTTP API for Claude Code, Goose, Aider, Gemin…6.5
- CVE-2025-59958An Improper Check for Unusual or Exceptional Conditions vuln…6.9
- CVE-2025-59959An Untrusted Pointer Dereference vulnerability in the routin…6.8
- CVE-2025-5996An issue has been discovered in GitLab CE/EE affecting all v…6.5
- CVE-2025-59960An Improper Check for Unusual or Exceptional Conditions vuln…7.4
- CVE-2025-59961An Incorrect Permission Assignment for Critical Resource vul…6.8
- CVE-2025-59962An Access of Uninitialized Pointer vulnerability in the rout…6
Are you affected by CVE-2025-59957?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
