CVE-2023-36845: Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability
CVE-2023-36845 is a critical-severity flaw (CVSS 9.8) affecting junos, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 95.1% (top 1%) |
| CISA exploited list | Yes, fix due 2023-11-17 |
| Weakness | CWE-473 |
| Published | 2023-08-17 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: vulncheck-oss/cve-2023-36845-scanner (62 stars)
- GitHub PoC: kljunowsky/CVE-2023-36845 (55 stars)
- GitHub PoC: Asbawy/Automation-for-Juniper-cve-2023-36845 (19 stars)
- GitHub PoC: 0xNehru/CVE-2023-36845-Juniper-Vulnerability
- GitHub PoC: 3yujw7njai/ansible-cve-2023-36845
- Exploit-DB: Juniper SRX Firewalls/EX Switches - Unauthenticated Remote Code Execution (RCE) (PoC)
- Metasploit: Junos OS PHPRC Environment Variable Manipulation RCE
- Nuclei scan template: Juniper J-Web - Remote Code Execution
Advisories and coverage
Research and news
- VulnCheck Blog: Fileless Remote Code Execution on Juniper Firewalls 2023-09-18
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-36845?
junos: upgrade to 20.4. Exact commands for each OS are on this page.
Is CVE-2023-36845 being exploited?
Yes. CVE-2023-36845 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2023-36845 affect?
CVE-2023-36845 affects junos. Severity is critical (CVSS 9.8). 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 var
How urgent is CVE-2023-36845?
Priority 97/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
PHP vulnerabilities · Juniper Junos vulnerabilities
Related CVEs
- CVE-2015-5477 HIGH 7.5 EXPLOITED UPGRADE MITIGATE ISC BIND Data Processing Errors Vulnerability
- CVE-2026-101986 CRITICAL 9.8 UPGRADE UPGRADE An Improper Authentication vulnerability in J-Web of Juniper Networks Junos OS and Junos OS Evolved allows an
- CVE-2026-101990 CRITICAL 9.8 UPGRADE UPGRADE A Stack-based Buffer Overflow vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS
- CVE-2026-33790 HIGH 7.5 UPGRADE An Improper Check for Unusual or Exceptional Conditions vulnerability in the flow daemon (flowd) of Juniper Ne
- CVE-2026-33791 MEDIUM 6.7 UPGRADE UPGRADE An OS Command Injection vulnerability in the CLI processing of Juniper Networks Junos OS and Junos OS Evolved