# CVE-2024-39565: Junos OS: J-Web: An unauthenticated, network-based attacker can perform XPATH injection attack against a device.

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v4.0, CNA) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:Y/V:C/RE:M/U:Amber`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; AU: Y; V: C; RE: M; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.23% (percentile 69, 2026-11-26)
- **CWE:** CWE-643
- **Published:** 2024-07-10T22:55:27.516Z
- **Modified:** 2026-06-17T07:42:14.743Z

## Who should check

- Anyone running Juniper Networks, Inc. Junos OS \< 21.2R3-S8; \>= 21.4, \< 21.4R3-S7; \>= 22.2, \< 22.2R3-S4; \>= 22.3, \< 22.3R3-S3; \>= 22.4, \< 22.4R3-S2; \>= 23.2, \< 23.2R2; \>= 23.4, \< 23.4R1-S1, 23.4R2

## Description

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 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.

## Affected and fixed versions

- Juniper Networks, Inc. Junos OS: \< 21.2R3-S8; \>= 21.4, \< 21.4R3-S7; \>= 22.2, \< 22.2R3-S4; \>= 22.3, \< 22.3R3-S3; \>= 22.4, \< 22.4R3-S2; \>= 23.2, \< 23.2R2; \>= 23.4, \< 23.4R1-S1, 23.4R2 (cvelist)

## Mitigation

- Vendor workaround: There are no known workarounds for this issue other than disabling J-Web when not in use. 
- 
- Juniper Networks has written an effective countermeasure for this attack at IDP Signature SigPack \#3675 onward, released on 07 February 2024. The signature “HTTP:PHP:LAUNCHPAD-CMD-INJ” will identify and block the attack. For best effect, customers may deploy this signature on devices where J-Web is not used.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-39565. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39565.md
Affected: Juniper Networks, Inc. Junos OS < 21.2R3-S8; >= 21.4, < 21.4R3-S7; >= 22.2, < 22.2R3-S4; >= 22.3, < 22.3R3-S3; >= 22.4, < 22.4R3-S2; >= 23.2, < 23.2R2; >= 23.4, < 23.4R1-S1, 23.4R2
Fixed in: Juniper Networks, Inc. Junos OS 21.2R3-S8, Juniper Networks, Inc. Junos OS 21.4R3-S7, Juniper Networks, Inc. Junos OS 22.2R3-S4, Juniper Networks, Inc. Junos OS 22.3R3-S3, Juniper Networks, Inc. Junos OS 22.4R3-S2, Juniper Networks, Inc. Junos OS 23.2R2, Juniper Networks, Inc. Junos OS 23.4R1-S1

Steps:
1. Search this machine and project for Juniper Networks, Inc. Junos OS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-39565 being exploited?

There is no confirmed exploitation: CVE-2024-39565 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-39565?

High: CVSS 7.7 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-39565?

Juniper Networks, Inc. Junos OS \< 21.2R3-S8; \>= 21.4, \< 21.4R3-S7; \>= 22.2, \< 22.2R3-S4; \>= 22.3, \< 22.3R3-S3; \>= 22.4, \< 22.4R3-S2; \>= 23.2, \< 23.2R2; \>= 23.4, \< 23.4R1-S1, 23.4R2.

### Is there a fix for CVE-2024-39565?

Yes. Fixed in Juniper Networks, Inc. Junos OS 21.2R3-S8, Juniper Networks, Inc. Junos OS 21.4R3-S7, Juniper Networks, Inc. Junos OS 22.2R3-S4, Juniper Networks, Inc. Junos OS 22.3R3-S3, Juniper Networks, Inc. Junos OS 22.4R3-S2, Juniper Networks, Inc. Junos OS 23.2R2, Juniper Networks, Inc. Junos OS 23.4R1-S1. Vendor workaround: There are no known workarounds for this issue other than disabling J-Web when not in use.   Juniper Networks has written an effective countermeasure for this attack at IDP Signature SigPack \#3675 onward, released on 07 February 2024. The signature “HTTP:PHP:LAUNCHPAD-CMD-INJ” will identify and block the attack. For best effect, customers may deploy this signature on devices where J-Web is not used.

### How do I check if I'm affected by CVE-2024-39565?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://supportportal.juniper.net/JSA83023>
- vendor: <https://www.first.org/cvss/calculator/v4-0#CVSS: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:P/AU:Y/R:I/V:C/RE:L/U:Amber>
- patch: <https://support.juniper.net/support/downloads/?p=283>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-39565>

HTML: <https://flawdb.com/CVE-2024-39565> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-39565>
