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

High 7.7 Published Updated

Unauthenticated attackers can execute remote commands via XPath injection in J-Web, potentially gaining full device control.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-39565?

CVE-2024-39565 is a high-severity code injection vulnerability in Juniper Junos, published on 10 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-643

Which versions are affected by CVE-2024-39565?

It affects 2 products.

Products include Juniper J-Web, Juniper Junos.

How do I fix CVE-2024-39565?

No fix has been published for CVE-2024-39565 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-39565 being exploited?

There is no known exploitation of CVE-2024-39565 in the wild and no public exploit code.

Sources

Also known as GHSA-9xg8-vx2w-7c89.

Is CVE-2024-39565 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free