Cyber Resilience

CVE-2025-59957

Juniper Junos ≤ 21.4

Published
09 October 2025
Modified
23 January 2026
Patch / advisory
CVSS Score v4 7.0
Click a component to see what it means
Raw vectorCVSS: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
EPSS Score 0.0017 7th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2025-59957 is a high-severity Origin Validation Error (CWE-346) vulnerability in Juniper Junos. Its CVSS base score is 7.0 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Account Manipulation (T1098); ranked at the 7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and SI-7 (Software, Firmware, and Information Integrity) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1098 Account Manipulation Persistence
Adversaries may manipulate accounts to maintain and/or elevate access to victim systems.
T1136.001 Local Account Persistence
Adversaries may create a local account to maintain access to victim systems.
T1037.005 Startup Items Persistence
Adversaries may use startup items automatically executed at boot initialization to establish persistence.
T1564 Hide Artifacts Stealth
Adversaries may attempt to hide artifacts associated with their behaviors to evade detection.
Why these techniques?

Physical access exploit modifies defaults config file to inject hidden accounts/IPs for backdoor access and persistence across reboots/zeroization (maps to account manipulation, local account creation, startup scripts, and hiding artifacts).

Confidence: MEDIUM · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2024-39533Same product: Juniper Ex4600
CVE-2024-47498Same product: Juniper Qfx5110
CVE-2024-30388Same product: Juniper Ex4650
CVE-2026-33781Same product: Juniper Ex4600
CVE-2026-21910Same product: Juniper Ex4600
CVE-2025-30644Same product: Juniper Ex4600
CVE-2026-57029Same product: Juniper Qfx5110
CVE-2023-44189Same vendor: Juniper
CVE-2023-44190Same vendor: Juniper
CVE-2026-33773Same product: Juniper Ex4600

Affected Assets

juniper
junos
21.4, 22.2 · ≤ 21.4

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • AC-3 Access Enforcement
  • PE-3 Physical Access Control
Detect
Catch it (NIST detect / respond)
  • SI-7 Software, Firmware, and Information Integrity
Harden
Shrink the surface (DISA STIG)
  • 3 hardening rules · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly enforces access restrictions on the insufficiently protected defaults file so that only authenticated processes can modify it, blocking the backdoor insertion when no root password exists.

detect

Requires integrity verification of the platform-defaults.conf file (and comparison against a known-good image) so that unauthorized persistent changes are discovered before or after reboot.

prevent

Restricts unauthorized physical access to the switch, eliminating the attack vector that allows an unauthenticated person to edit the file on the EX4600/QFX5000 hardware.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.AA-03 mostly match
prevents

Authentication directly verifies the source of users/services/hardware, mitigating origin validation failures.

PR.AA-04 mostly match
prevents

Verifying identity assertions enforces origin validation for conveyed claims.

ID.AM-03 partial match
prevents

Documenting authorized flows supports origin validation by defining expected sources.

PR.IR-01 partial match
prevents

Protecting networks from unauthorized access requires origin checks on communication sources.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

mitigates

Network security controls enforce origin validation at network boundaries.

mitigates

Security of network services includes validating the authenticity of service endpoints.

mitigates

Network segregation reduces exposure but does not directly validate origins.

prevents

Application security requirements explicitly call for origin validation of inputs and communications.

prevents

Secure architecture principles encourage origin checks but do not mandate them.

prevents

Secure coding practices include implementing proper origin validation to prevent spoofing.

References