{"id":"CVE-2023-36845","aliases":["EUVD-2023-40765","GHSA-q56g-qr28-qh57"],"status":"published","title":"Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to control an important environment variable","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\n\nThis issue affects Juniper Networks Junos OS on EX Series\n\n\nand \n\n\nSRX Series:\n\n\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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.9507,"percentile":0.99863,"model":"v2026.06.15"},"facts":{"in_kev":true,"known_exploited":true,"public_exploit":true,"fix_available":false},"cwes":["CWE-473"],"published":"2023-08-17T19:17:57Z","modified":"2026-06-17T06:07:12Z","kev":{"date_added":"2023-11-13","due_date":"2023-11-17","required_action":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","known_ransomware_use":"Unknown"},"exploitation":[{"source":"euvd","since":"2023-11-13"},{"source":"kev","since":"2023-11-13"}],"exploits":[{"source":"metasploit","id":"exploit/freebsd/http/junos_phprc_auto_prepend_file","title":"Junos OS PHPRC Environment Variable Manipulation RCE","type":"exploit","platform":"PHP,Unix","date":"2023-08-17","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/freebsd/http/junos_phprc_auto_prepend_file"},{"source":"pocgithub","id":"vulncheck-oss/cve-2023-36845-scanner","title":"vulncheck-oss/cve-2023-36845-scanner","date":"2023-09-16","url":"https://github.com/vulncheck-oss/cve-2023-36845-scanner"},{"source":"pocgithub","id":"kljunowsky/CVE-2023-36845","title":"kljunowsky/CVE-2023-36845","date":"2023-09-26","url":"https://github.com/kljunowsky/CVE-2023-36845"},{"source":"pocgithub","id":"halencarjunior/CVE-2023-36845","title":"halencarjunior/CVE-2023-36845","date":"2023-09-27","url":"https://github.com/halencarjunior/CVE-2023-36845"},{"source":"pocgithub","id":"zaenhaxor/CVE-2023-36845","title":"zaenhaxor/CVE-2023-36845","date":"2023-09-29","url":"https://github.com/zaenhaxor/CVE-2023-36845"},{"source":"pocgithub","id":"simrotion13/CVE-2023-36845","title":"simrotion13/CVE-2023-36845","date":"2023-10-01","url":"https://github.com/simrotion13/CVE-2023-36845"},{"source":"pocgithub","id":"cyberh3als/CVE-2023-36845-POC","title":"cyberh3als/CVE-2023-36845-POC","date":"2023-10-02","url":"https://github.com/cyberh3als/CVE-2023-36845-POC"},{"source":"pocgithub","id":"P4x1s/ansible-cve-2023-36845","title":"P4x1s/ansible-cve-2023-36845","date":"2023-11-15","url":"https://github.com/P4x1s/ansible-cve-2023-36845"},{"source":"pocgithub","id":"Asbawy/Automation-for-Juniper-cve-2023-36845","title":"Asbawy/Automation-for-Juniper-cve-2023-36845","date":"2024-01-29","url":"https://github.com/Asbawy/Automation-for-Juniper-cve-2023-36845"},{"source":"pocgithub","id":"jahithoque/Juniper-CVE-2023-36845-Mass-Hunting","title":"jahithoque/Juniper-CVE-2023-36845-Mass-Hunting","date":"2024-01-30","url":"https://github.com/jahithoque/Juniper-CVE-2023-36845-Mass-Hunting"},{"source":"pocgithub","id":"cyb3rzest/Juniper-Bug-Automation-CVE-2023-36845","title":"cyb3rzest/Juniper-Bug-Automation-CVE-2023-36845","date":"2024-02-01","url":"https://github.com/cyb3rzest/Juniper-Bug-Automation-CVE-2023-36845"},{"source":"pocgithub","id":"CharonDefalt/Juniper-exploit-CVE-2023-36845","title":"CharonDefalt/Juniper-exploit-CVE-2023-36845","date":"2024-02-03","url":"https://github.com/CharonDefalt/Juniper-exploit-CVE-2023-36845"},{"source":"pocgithub","id":"ak1t4/CVE-2023-36845","title":"ak1t4/CVE-2023-36845","date":"2024-02-13","url":"https://github.com/ak1t4/CVE-2023-36845"},{"source":"pocgithub","id":"iveresk/CVE-2023-36845-6-","title":"iveresk/CVE-2023-36845-6-","date":"2024-02-13","url":"https://github.com/iveresk/CVE-2023-36845-6-"},{"source":"pocgithub","id":"0xNehru/CVE-2023-36845-Juniper-Vulnerability","title":"0xNehru/CVE-2023-36845-Juniper-Vulnerability","date":"2024-02-14","url":"https://github.com/0xNehru/CVE-2023-36845-Juniper-Vulnerability"},{"source":"pocgithub","id":"ifconfig-me/CVE-2023-36845","title":"ifconfig-me/CVE-2023-36845","date":"2024-02-17","url":"https://github.com/ifconfig-me/CVE-2023-36845"},{"source":"pocgithub","id":"e11i0t4lders0n/CVE-2023-36845","title":"e11i0t4lders0n/CVE-2023-36845","date":"2024-02-18","url":"https://github.com/e11i0t4lders0n/CVE-2023-36845"},{"source":"pocgithub","id":"kopfjager007/CVE-2023-36845","title":"kopfjager007/CVE-2023-36845","date":"2025-11-24","url":"https://github.com/kopfjager007/CVE-2023-36845"},{"source":"pocgithub","id":"cxb2523/ccfb-pointwise-20261109-010-cve-2023-36845-scanner","title":"cxb2523/ccfb-pointwise-20261109-010-cve-2023-36845-scanner","date":"2026-11-09","url":"https://github.com/cxb2523/ccfb-pointwise-20261109-010-cve-2023-36845-scanner"},{"source":"nuclei","id":"CVE-2023-36845","title":"Juniper J-Web - Remote Code Execution","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-36845.yaml"}],"products":[{"vendor":"juniper","product":"junos"},{"vendor":"juniper","product":"junos os"},{"vendor":"juniper networks","product":"junos os"}],"references":[{"url":"https://supportportal.juniper.net/JSA72300","tags":["vendor-advisory","mitigation","x_transferred","Vendor Advisory"]},{"url":"http://packetstormsecurity.com/files/174865/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/176969/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-36845","tags":["government-resource","US Government Resource"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36845"},{"url":"http://packetstormsecurity.com/files/174397/Juniper-JunOS-SRX-EX-Remote-Code-Execution.html"},{"url":"https://github.com/advisories/GHSA-q56g-qr28-qh57"}],"sources":{"cve":[{"id":"CVE-2023-36845","title":"Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to control an important environment variable","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\n\nThis issue affects Juniper Networks Junos OS on EX Series\n\n\nand \n\n\nSRX Series:\n\n\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.","status":"published","published":"2023-08-17T19:17:57.183Z","modified":"2025-10-21T23:05:40.639Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-473"],"updated_at":"2026-11-02T14:35:27.810438Z"}],"euvd":[{"id":"EUVD-2023-40765","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\n\nThis issue affects Juniper Networks Junos OS on EX Series\n\n\nand \n\n\nSRX Series:\n\n\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.","status":"published","published":"2023-08-17T19:17:57Z","modified":"2025-10-21T23:05:40Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"exploited_since":"2023-11-13","updated_at":"2026-11-02T20:31:27.312976Z"}],"ghsa":[{"id":"GHSA-q56g-qr28-qh57","title":"A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX...","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 control certain, important environments variables.\n\nUtilizing a crafted request an attacker is able to modify a certain PHP environment variable leading to partial loss of integrity, which may allow chaining to other vulnerabilities.\n\n\nThis issue affects Juniper Networks Junos OS on SRX Series:\n\n\n\n  *  All 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.","status":"published","published":"2023-08-17T21:30:53Z","modified":"2025-10-22T00:32:46Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-473"],"updated_at":"2026-11-02T15:04:06.493434Z"}],"kev":[{"id":"CVE-2023-36845","title":"Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability","description":"Juniper Junos OS on EX Series and SRX Series contains a PHP external variable modification vulnerability that allows an unauthenticated, network-based attacker to control an important environment variable. Using 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.","cwes":["CWE-473"],"kev":{"date_added":"2023-11-13","due_date":"2023-11-17","required_action":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","known_ransomware_use":"Unknown"},"updated_at":"2026-11-02T17:00:16.234141Z"}],"nvd":[{"id":"CVE-2023-36845","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\n\nThis issue affects Juniper Networks Junos OS on EX Series\n\n\nand \n\n\nSRX Series:\n\n\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.","status":"published","published":"2023-08-17T20:15:10.36Z","modified":"2026-06-17T06:07:12.753Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-473"],"updated_at":"2026-11-02T14:08:24.487686Z"}]}}
