{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2023-36845 in the wild since at least 13 Nov 2023.","fix":"No fix has been published for CVE-2023-36845 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 17 Nov 2023.","what":"CVE-2023-36845 is a critical code injection vulnerability in Juniper Junos, published on 17 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-36845 and fix it if it is affected.\n\nWhat it is: CVE-2023-36845 is a critical code injection vulnerability in Juniper Junos, published on 17 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2023-36845 in the wild since at least 13 Nov 2023.\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-2023-36845/ (Markdown: https://insights.sbomify.com/CVE-2023-36845/index.md)","id":"CVE-2023-36845","markdown":"https://insights.sbomify.com/CVE-2023-36845/index.md","name":"CVE-2023-36845","record":{"aliases":["GHSA-q56g-qr28-qh57"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Juniper Junos OS","requires_auth":"none","summary":"Unauthenticated attackers can remotely execute code on Juniper EX and SRX devices by manipulating PHP environment variables via J-Web.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"juniper","cpe":[{"product":"junos","vendor":"juniper"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-473","name":"PHP External Variable Modification"}],"description":"A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series \n\nand SRX Series \n\nallows an unauthenticated, network-based attacker to remotely execute code.\n\nUsing a crafted request which sets the variable PHPRC an attacker is able to modify the PHP execution environment allowing the injection und execution of code.\n\nThis issue affects Juniper Networks Junos OS on EX Series\n\nand \n\nSRX Series:\n\n  *  All versions prior to \n\n20.4R3-S9;\n  *  21.1 versions 21.1R1 and later;\n  *  21.2 versions prior to 21.2R3-S7;\n  *  21.3 versions prior to 21.3R3-S5;\n  *  21.4 versions prior to 21.4R3-S5;\n  *  22.1 versions \n\nprior to \n\n22.1R3-S4;\n  *  22.2 versions \n\nprior to \n\n22.2R3-S2;\n  *  22.3 versions \n\nprior to \n\n22.3R2-S2, 22.3R3-S1;\n  *  22.4 versions \n\nprior to \n\n22.4R2-S1, 22.4R3;\n  *  23.2 versions prior to 23.2R1-S1, 23.2R2.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-08-17","github_poc":17,"max_poc_stars":62,"metasploit":1,"nuclei":1,"refs":[{"date":"2023-09-16T09:11:21Z","kind":"github_poc","ref":"https://github.com/vulncheck-oss/cve-2023-36845-scanner","stars":62,"title":"A go-exploit to scan for Juniper firewalls vulnerable to CVE-2023-36845"},{"date":"2023-09-26T17:56:55Z","kind":"github_poc","ref":"https://github.com/kljunowsky/CVE-2023-36845","stars":55,"title":"Juniper Firewalls CVE-2023-36845 - RCE"},{"date":"2024-01-29T18:53:22Z","kind":"github_poc","ref":"https://github.com/Asbawy/Automation-for-Juniper-cve-2023-36845","stars":19,"title":"Simple Automation script for juniper cve-2023-36845"},{"date":"2024-02-13T20:59:34Z","kind":"github_poc","ref":"https://github.com/ak1t4/CVE-2023-36845","stars":5,"title":"CVES "},{"date":"2023-09-29T03:11:37Z","kind":"github_poc","ref":"https://github.com/zaenhaxor/CVE-2023-36845","stars":4,"title":"CVE-2023-36845 - Juniper Firewall Remote code execution (RCE)"},{"date":"2023-10-02T06:28:07Z","kind":"github_poc","ref":"https://github.com/cyberh3als/CVE-2023-36845-POC","stars":4,"title":"CVE-2023-36845 PoC script automates the PoC for CVE-2023-36845 targeting Juniper Networks Junos OS's J-Web component on EX and SRX Series devices. It exploits a PHP flaw, allowing remote modification of the PHPRC variable. Successful exploitation can lead to code injection and execution."},{"date":"2023-09-27T23:56:07Z","kind":"github_poc","ref":"https://github.com/halencarjunior/CVE-2023-36845","stars":1,"title":null},{"date":"2023-10-01T03:41:40Z","kind":"github_poc","ref":"https://github.com/simrotion13/CVE-2023-36845","stars":1,"title":null}],"tier":"exploited"},"has_fix":null,"headline":"Juniper Junos OS EX Series and SRX Series PHP External Variable Modification","id":"CVE-2023-36845","indexable":true,"kev":{"dateAdded":"2023-11-13","dueDate":"2023-11-17","knownRansomwareCampaignUse":"Unknown","product":"Junos OS","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"Juniper","vulnerabilityName":"Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"juniper:junos","products":["juniper:junos"],"type":"code_injection","year":"2023"},"n_packages":0,"n_references":3,"next":{"headline":"Juniper Junos OS SRX Series Missing Authentication for Critical Function","id":"CVE-2023-36846"},"packages":[],"prev":{"headline":"Juniper Junos OS EX Series PHP External Variable Modification","id":"CVE-2023-36844"},"products":["Junos OS"],"published":"2023-08-17","related":[{"cvss_score":8.8,"headline":"Juniper Junos OS Path Traversal","id":"CVE-2020-1631","kev_date_added":"2022-03-25","published":"2020-05-04"},{"cvss_score":6.7,"headline":"Juniper Junos OS Improper Isolation or Compartmentalization","id":"CVE-2025-21590","kev_date_added":"2025-03-13","published":"2025-03-12"},{"cvss_score":5.3,"headline":"Juniper Junos OS SRX Series Missing Authentication for Critical Function","id":"CVE-2023-36851","kev_date_added":"2023-11-13","published":"2023-09-26"},{"cvss_score":5.3,"headline":"Juniper Junos OS EX Series PHP External Variable Modification","id":"CVE-2023-36844","kev_date_added":"2023-11-13","published":"2023-08-17"},{"cvss_score":5.3,"headline":"Juniper Junos OS SRX Series Missing Authentication for Critical Function","id":"CVE-2023-36846","kev_date_added":"2023-11-13","published":"2023-08-17"},{"cvss_score":5.3,"headline":"Juniper Junos OS EX Series Missing Authentication for Critical Function","id":"CVE-2023-36847","kev_date_added":"2023-11-13","published":"2023-08-17"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Juniper Networks"]},"summary":"Unauthenticated attackers can remotely execute code on Juniper EX and SRX devices by manipulating PHP environment variables via J-Web.","url":"https://insights.sbomify.com/CVE-2023-36845/"}