{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-39565 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-39565 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-39565 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-39565 in the wild and no public exploit code.\n\nAffected product: Juniper Junos. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-39565/ (Markdown: https://insights.sbomify.com/CVE-2024-39565/index.md)","id":"CVE-2024-39565","markdown":"https://insights.sbomify.com/CVE-2024-39565/index.md","name":"CVE-2024-39565","record":{"aliases":["GHSA-9xg8-vx2w-7c89"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Junos OS J-Web","requires_auth":"none","summary":"Unauthenticated attackers can execute remote commands via XPath injection in J-Web, potentially gaining full device control.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"juniper","cpe":[{"product":"j-web","vendor":"juniper"},{"product":"junos","vendor":"juniper"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-643","name":"Improper Neutralization of Data within XPath Expressions"}],"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. \n\nWhile 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.\nThis issue affects Junos OS: \n\n  *  All versions before 21.2R3-S8, \n  *  from 21.4 before 21.4R3-S7,\n  *  from 22.2 before 22.2R3-S4,\n  *  from 22.3 before 22.3R3-S3,\n  *  from 22.4 before 22.4R3-S2,\n  *  from 23.2 before 23.2R2,\n  *  from 23.4 before 23.4R1-S1, 23.4R2.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Junos OS: J-Web: An unauthenticated, network-based attacker can perform XPATH injection attack against a device.","id":"CVE-2024-39565","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"juniper:junos","products":["juniper:junos"],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"Command injection in SINEMA Remote Connect Client","id":"CVE-2024-39567"},"packages":[],"prev":{"headline":"Junos OS and Junos OS Evolved: Receipt of malformed BGP path attributes leads to RPD crash","id":"CVE-2024-39564"},"products":["Junos OS"],"published":"2024-07-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["Juniper Networks, Inc."]},"summary":"Unauthenticated attackers can execute remote commands via XPath injection in J-Web, potentially gaining full device control.","url":"https://insights.sbomify.com/CVE-2024-39565/"}