{"id":"CVE-2023-36845","state":"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.","publishedAt":"2023-08-17T19:17:57.183Z","updatedAt":"2025-10-21T23:05:40.639Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"juniper"},"assigner":"juniper","products":["Juniper Networks Junos OS"],"affected":[{"vendor":"Juniper Networks","product":"Junos OS","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"20.4R3-S9","versionType":"semver"},{"version":"21.1","status":"affected","lessThan":"21.1*","versionType":"semver"},{"version":"21.2","status":"affected","lessThan":"21.2R3-S7","versionType":"semver"},{"version":"21.3","status":"affected","lessThan":"21.3R3-S5","versionType":"semver"},{"version":"21.4","status":"affected","lessThan":"21.4R3-S5","versionType":"semver"},{"version":"22.1","status":"affected","lessThan":"22.1R3-S4","versionType":"semver"},{"version":"22.2","status":"affected","lessThan":"22.2R3-S2","versionType":"semver"},{"version":"22.3","status":"affected","lessThan":"22.3R2-S2, 22.3R3-S1","versionType":"semver"},{"version":"22.4","status":"affected","lessThan":"22.4R2-S1, 22.4R3","versionType":"semver"},{"version":"23,2","status":"affected","lessThan":"23.2R1-S1, 23.2R2","versionType":"semver"}],"platforms":["EX Series","SRX Series"]}],"references":["https://supportportal.juniper.net/JSA72300","http://packetstormsecurity.com/files/174865/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html","http://packetstormsecurity.com/files/176969/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html","https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-36845"],"weaknesses":["CWE-473"],"ingestedAt":"2026-10-29T20:06:08.715Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/36xxx/CVE-2023-36845.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-36845","state":"PUBLISHED","datePublished":"2023-08-17T19:17:57.183Z","dateUpdated":"2025-10-21T23:05:40.639Z","assignerShortName":"juniper","assignerOrgId":"8cbe9d5a-a066-4c94-8978-4b15efeae968","dateReserved":"2023-06-27T16:17:25.277Z"},"containers":{"cna":{"title":"Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to control an important environment variable","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Juniper Networks","product":"Junos OS","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"20.4R3-S9","versionType":"semver"},{"version":"21.1","status":"affected","lessThan":"21.1*","versionType":"semver"},{"version":"21.2","status":"affected","lessThan":"21.2R3-S7","versionType":"semver"},{"version":"21.3","status":"affected","lessThan":"21.3R3-S5","versionType":"semver"},{"version":"21.4","status":"affected","lessThan":"21.4R3-S5","versionType":"semver"},{"version":"22.1","status":"affected","lessThan":"22.1R3-S4","versionType":"semver"},{"version":"22.2","status":"affected","lessThan":"22.2R3-S2","versionType":"semver"},{"version":"22.3","status":"affected","lessThan":"22.3R2-S2, 22.3R3-S1","versionType":"semver"},{"version":"22.4","status":"affected","lessThan":"22.4R2-S1, 22.4R3","versionType":"semver"},{"version":"23,2","status":"affected","lessThan":"23.2R1-S1, 23.2R2","versionType":"semver"}],"platforms":["EX Series","SRX Series"]}],"references":[{"url":"https://supportportal.juniper.net/JSA72300","tags":["vendor-advisory","mitigation"]},{"url":"http://packetstormsecurity.com/files/174865/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html"},{"url":"http://packetstormsecurity.com/files/176969/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-473","description":"CWE-473 PHP External Variable Modification","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"juniper","orgId":"8cbe9d5a-a066-4c94-8978-4b15efeae968","dateUpdated":"2024-02-02T17:06:19.472Z"},"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The following minimal configuration is necessary:</p><code>&nbsp; [system services web-management http]</code><p>or</p><code>&nbsp; [system services web-management https]</code><br>"}],"value":"The following minimal configuration is necessary:\n\n  [system services web-management http]or\n\n  [system services web-management https]"}],"credits":[{"lang":"en","type":"finder","value":"LYS, working with DEVCORE Internship Program"}],"datePublic":"2023-08-17T16:00:00.000Z","exploits":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Juniper SIRT is not aware of any malicious exploitation of this vulnerability.<br>"}],"value":"Juniper SIRT is not aware of any malicious exploitation of this vulnerability."}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"The following software releases have been updated to resolve this specific issue: \n\n<span style=\"background-color: rgb(255, 255, 255);\">20.4R3-S9*,&nbsp;</span>21.2R3-S7*,&nbsp;21.3R3-S5,&nbsp;21.4R3-S5*, 22.1R3-S4*, 22.2R3-S2, 22.3R2-S2, 22.3R3-S1*, 22.4R2-S1, 22.4R3*, 23.2R1-S1, 23.2R2*,&nbsp;23.4R1*<span style=\"background-color: var(--wht);\">, and all subsequent releases.</span><span style=\"background-color: rgb(255, 255, 255);\"><br></span>\n\n*Pending Publication\n\n\n\n<br>"}],"value":"The following software releases have been updated to resolve this specific issue: \n\n20.4R3-S9*, 21.2R3-S7*, 21.3R3-S5, 21.4R3-S5*, 22.1R3-S4*, 22.2R3-S2, 22.3R2-S2, 22.3R3-S1*, 22.4R2-S1, 22.4R3*, 23.2R1-S1, 23.2R2*, 23.4R1*, and all subsequent releases.\n\n\n*Pending Publication"}],"source":{"defect":["1736942"],"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Disable J-Web, or limit access to only trusted hosts.<br>"}],"value":"Disable J-Web, or limit access to only trusted hosts."}],"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://supportportal.juniper.net/JSA72300","tags":["vendor-advisory","mitigation","x_transferred"]},{"url":"http://packetstormsecurity.com/files/174865/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html","tags":["x_transferred"]},{"url":"http://packetstormsecurity.com/files/176969/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T17:01:09.559Z"}},{"title":"CISA ADP Vulnrichment","references":[{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-36845","tags":["government-resource"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-36845","role":"CISA Coordinator","options":[{"Exploitation":"active"},{"Automatable":"yes"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2023-11-15T16:40:40.516848Z"}}},{"other":{"type":"kev","content":{"dateAdded":"2023-11-13","reference":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-36845"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-21T23:05:40.639Z"},"timeline":[{"time":"2023-11-13T00:00:00.000Z","lang":"en","value":"CVE-2023-36845 added to CISA KEV"}]}]}}}