CVE-2023-36845: Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability
Yes. CVE-2023-36845 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 13 November 2023. Public exploit code is available: 1 Metasploit module, 1 Exploit-DB entry and a Nuclei detection template. EPSS puts the chance of further exploitation attempts in the next 30 days at 98.7%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 13 November 2023
- Used in ransomware
- Not known
- Public exploit code
- 1 Metasploit module, 1 Exploit-DB entry and a Nuclei detection template
- Chance of exploitation (EPSS)
- 98.7% in the next 30 days, higher than 99.9% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 9.8 Critical (version 3.1)
- Affects
- Juniper Junos OS
- Type of flaw
- PHP External Variable Modification (CWE-473)
- Published
- 17 August 2023
- US federal patch deadline
- 17 November 2023
What it is
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.
A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series and SRX Series allows an unauthenticated, network-based attacker to remotely execute code. 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. This issue affects Juniper Networks Junos OS on EX Series and SRX Series: * All versions prior to 20.4R3-S9; * 21.1 versions 21.1R1 and later; * 21.2 versions prior to 21.2R3-S7; * 21.3 versions prior to 21.3R3-S5; * 21.4 versions prior to 21.4R3-S5; * 22.1 versions prior to 22.1R3-S4; * 22.2 versions prior to 22.2R3-S2; * 22.3 versions prior to 22.3R2-S2, 22.3R3-S1; * 22.4 versions prior to 22.4R2-S1, 22.4R3; * 23.2 versions prior to 23.2R1-S1, 23.2R2.
Description from the CVE record.
Is CVE-2023-36845 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2023-36845 on 13 November 2023.
Public exploit code
These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.
| Source | Entry | Published |
|---|---|---|
| Metasploit | Junos OS PHPRC Environment Variable Manipulation RCE | |
| Nuclei template | Juniper J-Web - Remote Code Execution | |
| Exploit-DB | Juniper SRX Firewalls/EX Switches - Unauthenticated Remote Code Execution (RCE) (PoC) | 2 February 2024 |
Affected products
- Juniper Networks Junos OS: before 20.4R3-S9; 21.1 up to (not including) 21.1*; 21.2 up to (not including) 21.2R3-S7; 21.3 up to (not including) 21.3R3-S5; 21.4 up to (not including) 21.4R3-S5; 22.1 up to (not including) 22.1R3-S4; 22.2 up to (not including) 22.2R3-S2; 22.3 up to (not including) 22.3R2-S2, 22.3R3-S1
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
CISA's required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Juniper Junos OS runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
- Assume it has been scanned. A public Nuclei template exists for this flaw, so finding exposed systems across the internet is automated.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in Junos OS. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in Juniper products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2015-7755 | Juniper ScreenOS | Public exploit | 61.4% | 19 December 2015 |
| CVE-2025-21590 | Juniper Junos OS | No public exploit found | 1.7% | 12 March 2025 |
| CVE-2023-36846 | Juniper Junos OS | No public exploit found | 93.5% | 17 August 2023 |
| CVE-2023-36844 | Juniper Junos OS | Public exploit | 90.0% | 17 August 2023 |
| CVE-2023-36847 | Juniper Junos OS | No public exploit found | 83.5% | 17 August 2023 |
| CVE-2023-36851 | Juniper Junos OS | No public exploit found | 1.1% | 26 September 2023 |
Sources
- CVE record for CVE-2023-36845
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- supportportal.juniper.net (vendor-advisory, mitigation)
- packetstormsecurity.com
- packetstormsecurity.com
Machine-readable: /api/cve/CVE-2023-36845.json