Cyber Resilience

CVE-2024-39565

Juniper Junos ≤ 21.2

Published
10 July 2024
Modified
22 January 2026
Patch / advisory
CVSS Score v4 7.7
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/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:Y/R:X/V:C/RE:M/U:Amber
EPSS Score 0.0052 41th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2024-39565 is a high-severity XPath Injection (CWE-643) vulnerability in Juniper Junos. Its CVSS base score is 7.7 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 41th 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 SI-10 (Information Input Validation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

An Improper Neutralization of Data within XPath Expressions ('XPath Injection') vulnerability in J-Web shipped with Juniper Networks Junos OS allows an unauthenticated, network-based attacker to execute remote commands on the target device. While an administrator is logged into a J-Web…

more

session or has previously logged in and subsequently logged out of their J-Web session, the attacker can arbitrarily execute commands on the target device with the other user's credentials. In the worst case, the attacker will have full control over the device. This issue affects Junos OS: * All versions before 21.2R3-S8, * from 21.4 before 21.4R3-S7, * from 22.2 before 22.2R3-S4, * from 22.3 before 22.3R3-S3, * from 22.4 before 22.4R3-S2, * from 23.2 before 23.2R2, * from 23.4 before 23.4R1-S1, 23.4R2.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-21917Same product: Juniper Junos
CVE-2026-57026Same product: Juniper Junos
CVE-2026-33778Same product: Juniper Junos
CVE-2023-36845Same product: Juniper Junos
CVE-2025-60007Same product: Juniper Ex2300
CVE-2023-28985Same product: Juniper Junos
CVE-2025-30659Same product: Juniper Junos
CVE-2026-21920Same product: Juniper Junos
CVE-2023-36844Same product: Juniper Ex2300
CVE-2025-6549Same product: Juniper Junos

Affected Assets

juniper
j-web
all versions
juniper
junos
21.2, 21.4, 22.2, 22.3, 22.4 · ≤ 21.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.4
  • V1.2.7
  • V2.2.1
  • V4.3.1

Mitigating Controls (NIST 800-53 r5) AI

Input validation directly requires neutralizing untrusted data before it is used to build XPath queries.

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.PS-06 mostly match
prevents

Secure SDLC practices directly require input neutralization and query parameterization that prevent XPath injection.

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.

prevents

Secure coding standards require proper neutralization of untrusted input in XPath expressions.

finds

Security testing in development catches XPath injection vulnerabilities before release.

prevents

Secure SDLC mandates input validation and query parameterization that directly prevent XPath injection.

prevents

Application security requirements explicitly call for defenses against injection flaws including XPath injection.

prevents

Secure architecture principles reduce the likelihood of unsafe dynamic query construction.

finds

Vulnerability management processes identify and remediate XPath injection flaws discovered post-deployment.

References