CVE-2023-36845
Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability
Juniper Junos OSNetwork & edge
CVSS
9.8CriticalExploit odds (EPSS)95.1%Chance of exploitation activity in the next 30 days, higher than 99% of CVEs. Scored 23 Oct 2026FIRST EPSS
CISA required actionApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. CISA KEV
What fixes it
- 20.4R3-S9Junos OSCVE List
- 21.1*Junos OSCVE List
- 21.2R3-S7Junos OSCVE List
- 21.3R3-S5Junos OSCVE List
- 21.4R3-S5Junos OSCVE List
- 22.1R3-S4Junos OSCVE List
Show all 10 fixed versions
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Timeline
- 17 Aug 2023Exploit code publicMetasploit
- 17 Aug 2023, 19:17 UTCPublishedCVE List
- 13 Nov 2023Added to CISA KEVCISA KEV
Public exploit code and templates 2
- Exploit moduleJunos OS PHPRC Environment Variable Manipulation RCE 17 Aug 2023Metasploit
- Scanner templateJuniper J-Web - Remote Code ExecutionNuclei
Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.
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.
Text from CVE List
Affected versions 10
- Junos OSaffected: all versions before 20.4R3-S9CVE List
- Junos OSaffected: 21.1 before 21.1*CVE List
- Junos OSaffected: 21.2 before 21.2R3-S7CVE List
- Junos OSaffected: 21.3 before 21.3R3-S5CVE List
- Junos OSaffected: 21.4 before 21.4R3-S5CVE List
- Junos OSaffected: 22.1 before 22.1R3-S4CVE List
- Junos OSaffected: 22.2 before 22.2R3-S2CVE List
- Junos OSaffected: 22.3 before 22.3R2-S2, 22.3R3-S1CVE List
- Junos OSaffected: 22.4 before 22.4R2-S1, 22.4R3CVE List
- Junos OSaffected: 23,2 before 23.2R1-S1, 23.2R2CVE List
References 4
- supportportal.juniper.net/s/article/2023-08-Out-of-Cycle-Security-Bulletin-Junos-OS-SRX-Series-and-EX-Series-Multiple-vulnerabilities-in-J-Web-can-be-combined-to-allow-a-preAuth-Remote-Code-Execution?language=en_USAdvisoryvia CISA KEV
- supportportal.juniper.net/JSA72300Advisoryvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2023-36845Referencevia CISA KEV
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-36845Referencevia CVE List