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

Published Jul 10, 2024
·
Updated

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 Software

100 affected components
Juniper Networks 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
All of the following
Any of the following
Juniper J-Web
Juniper Junos<21.2
Juniper Junos=21.2
Juniper Junos=21.2-r1
Juniper Junos=21.2-r1-s1
Juniper Junos=21.2-r1-s2
Juniper Junos=21.2-r2
Juniper Junos=21.2-r2-s1
Juniper Junos=21.2-r2-s2
Juniper Junos=21.2-r3
Juniper Junos=21.2-r3-s1
Juniper Junos=21.2-r3-s2
Juniper Junos=21.2-r3-s3
Juniper Junos=21.2-r3-s4
Juniper Junos=21.2-r3-s5
Juniper Junos=21.2-r3-s6
Juniper Junos=21.2-r3-s7
Juniper Junos=21.4
Juniper Junos=21.4-r1
Juniper Junos=21.4-r1-s1
Juniper Junos=21.4-r1-s2
Juniper Junos=21.4-r2
Juniper Junos=21.4-r2-s1
Juniper Junos=21.4-r2-s2
Juniper Junos=21.4-r3
Juniper Junos=21.4-r3-s1
Juniper Junos=21.4-r3-s2
Juniper Junos=21.4-r3-s3
Juniper Junos=21.4-r3-s4
Juniper Junos=21.4-r3-s5
Juniper Junos=21.4-r3-s6
Juniper Junos=22.2
Juniper Junos=22.2-r1
Juniper Junos=22.2-r1-s1
Juniper Junos=22.2-r1-s2
Juniper Junos=22.2-r2
Juniper Junos=22.2-r2-s1
Juniper Junos=22.2-r2-s2
Juniper Junos=22.2-r3
Juniper Junos=22.2-r3-s1
Juniper Junos=22.2-r3-s2
Juniper Junos=22.2-r3-s3
Juniper Junos=22.3
Juniper Junos=22.3-r1
Juniper Junos=22.3-r1-s1
Juniper Junos=22.3-r1-s2
Juniper Junos=22.3-r2
Juniper Junos=22.3-r2-s1
Juniper Junos=22.3-r2-s2
Juniper Junos=22.3-r3
Juniper Junos=22.3-r3-s1
Juniper Junos=22.3-r3-s2
Juniper Junos=22.4
Juniper Junos=22.4-r1
Juniper Junos=22.4-r1-s1
Juniper Junos=22.4-r1-s2
Juniper Junos=22.4-r2
Juniper Junos=22.4-r2-s1
Juniper Junos=22.4-r2-s2
Juniper Junos=22.4-r3
Juniper Junos=22.4-r3-s1
Juniper Junos=23.2
Juniper Junos=23.2-r1
Juniper Junos=23.2-r1-s1
Juniper Junos=23.2-r1-s2
Juniper Junos=23.4
Juniper Junos=23.4-r1
Juniper Junos=23.4-r2
Any of the following
Juniper EX2300
Juniper EX2300-C
Juniper EX3400
Juniper EX4000
Juniper EX4100
Juniper Ex4100-f
Juniper Ex4100-h
Juniper EX4300
Juniper EX4400
Juniper EX4600
Juniper EX4650
Juniper Ex9204
Juniper Ex9208
Juniper Ex9214
Juniper SRX1500
Juniper SRX1600
Juniper SRX2300
Juniper SRX300
Juniper SRX320
Juniper SRX340
Juniper SRX345
Juniper Srx380
Juniper SRX4100
Juniper Srx4120
Juniper SRX4200
Juniper SRX4300
Juniper SRX4600
Juniper SRX4700
Juniper SRX5400
Juniper SRX5600
Juniper SRX5800

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 21.2R3-S8
  2. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 21.4R3-S7
  3. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 22.2R3-S4
  4. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 22.3R3-S3
  5. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 22.4R3-S2
  6. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 23.2R2
  7. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 23.4R1-S1
  8. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 23.4R2
  9. Upgrade

    Upgrade Junos OS: J-Web to a version that resolves this vulnerability.

    Fixed in 24.2R1

Event History

Jul 10, 2024
CVE Published
via MITRE·10:55 PM
Data Sourced
via MITRE·10:55 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-39565?

CVE-2024-39565 has been categorized as a high severity vulnerability, allowing unauthenticated attackers to execute remote commands.

2

How do I fix CVE-2024-39565?

To mitigate CVE-2024-39565, update your Junos OS to a patched version that addresses this XPath Injection vulnerability.

3

Which versions of Junos OS are affected by CVE-2024-39565?

CVE-2024-39565 affects multiple versions of Junos OS, including versions before 21.2R3-S8, 21.4R3-S7, and several others up to 23.4R1-S1.

4

Can CVE-2024-39565 be exploited remotely?

Yes, CVE-2024-39565 can be exploited remotely by an unauthenticated attacker over the network.

5

Is authentication required to exploit CVE-2024-39565?

No, CVE-2024-39565 does not require authentication for exploitation, making it particularly dangerous.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203