CVE-2023-36845 — Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability
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.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- Confirmed exploitation (CISA KEV)+35
- Public exploit/PoC (nuclei, metasploit, github)+20
- EPSS 95.1% (30-day exploitation probability)+15
- Technical severity (critical)+10
- Automatable exploitation (SSVC)+3
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
CISA SSVC assessment CISA
Three decision points CISA publishes for the CVEs it assesses (SSVC 2.0.3). A stakeholder decision, not a severity score.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
No fix documented by the sources we poll. That does not mean none exists: check the vendor advisory.
CISA required action CISA
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
US federal deadline: Nov 17, 2023 — passed 1063 day(s) ago
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Juniper Networks Junos, Juniper Networks Junos OS).
- Treat as emergency remediation: the CVE is in CISA KEV (confirmed exploitation).
- The attack is network-based and needs no privileges: restrict exposure (ACLs, VPN, WAF) until patched.
- No fix documented in the sources: reduce exposure and monitor the vendor advisory.
- EPSS ahead of 100% of scored CVEs: prioritize it in the patch queue.
- Search available logs for exploit probes, errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Juniper Networks | Junos |
< 20.4version 20.4version 20.4-r1version 20.4-r1-s1version 20.4-r2version 20.4-r2-s1version 20.4-r2-s2version 20.4-r3 and 85 moreversion 20.4-r3-s1version 20.4-r3-s2version 20.4-r3-s3version 20.4-r3-s4version 20.4-r3-s5version 20.4-r3-s6version 20.4-r3-s7version 20.4-r3-s8version 21.1-r1version 21.1-r1-s1version 21.1-r2version 21.1-r2-s1version 21.1-r2-s2version 21.1-r3version 21.1-r3-s1version 21.1-r3-s2version 21.1-r3-s3version 21.1-r3-s4version 21.1-r3-s5version 21.2version 21.2-r1version 21.2-r1-s1version 21.2-r1-s2version 21.2-r2version 21.2-r2-s1version 21.2-r2-s2version 21.2-r3version 21.2-r3-s1version 21.2-r3-s2version 21.2-r3-s3version 21.2-r3-s4version 21.2-r3-s5version 21.2-r3-s6version 21.3version 21.3-r1version 21.3-r1-s1version 21.3-r1-s2version 21.3-r2version 21.3-r2-s1version 21.3-r2-s2version 21.3-r3version 21.3-r3-s1version 21.3-r3-s2version 21.3-r3-s3version 21.3-r3-s4version 21.4version 21.4-r1version 21.4-r1-s1version 21.4-r1-s2version 21.4-r2version 21.4-r2-s1version 21.4-r2-s2version 21.4-r3version 21.4-r3-s1version 21.4-r3-s2version 21.4-r3-s3version 21.4-r3-s4version 22.1-r1version 22.1-r1-s1version 22.1-r1-s2version 22.1-r2version 22.1-r2-s1version 22.1-r2-s2version 22.1-r3version 22.1-r3-s1version 22.1-r3-s2version 22.1-r3-s3version 22.2-r1version 22.2-r1-s1version 22.2-r1-s2version 22.2-r2version 22.2-r2-s1version 22.2-r2-s2version 22.2-r3version 22.2-r3-s1version 22.3-r1version 22.3-r1-s1version 22.3-r1-s2version 22.3-r2version 22.3-r2-s1version 22.4-r1version 22.4-r1-s1version 22.4-r1-s2version 22.4-r2version 23.2-r1 |
Vulnerable | NIST National Vulnerability Database |
| Juniper Networks | Junos OS |
< 20.4R3-S9≥ 21.1 and < 21.1*≥ 21.2 and < 21.2R3-S7≥ 21.3 and < 21.3R3-S5≥ 21.4 and < 21.4R3-S5≥ 22.1 and < 22.1R3-S4≥ 22.2 and < 22.2R3-S2≥ 22.3 and < 22.3R2-S2, 22.3R3-S1 and 2 more≥ 22.4 and < 22.4R2-S1, 22.4R3≥ 23,2 and < 23.2R1-S1, 23.2R2 |
Vulnerable | CVE Program (cve.org) e CISA ADP |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | Critical | 3.9 | 5.9 | sirt@juniper.net via NIST National Vulnerability Database |
| 9.8 | CVSS 3.1 | Critical | — | — | juniper via CVE Program (cve.org) e CISA ADP |
| 5.3 | CVSS 3.1 | Medium | — | — | GitHub, Inc. via GitHub Security Advisories |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (score shown at the top: sirt@juniper.net) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
CISA KEV details CISA
CISA lists a CVE once it has evidence of exploitation against real targets.
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a reference date.
Public exploits, PoCs and detection templates
Public code that demonstrates or tests the flaw raises the odds of mass exploitation — and Nuclei templates help find vulnerable assets in your environment.
- Junos OS PHPRC Environment Variable Manipulation RCE excellent Aug 17, 2023
- A go-exploit to scan for Juniper firewalls vulnerable to CVE-2023-36845 ★ 62 Sep 16, 2023
- Juniper Firewalls CVE-2023-36845 - RCE ★ 55 Sep 26, 2023
- Simple Automation script for juniper cve-2023-36845 ★ 19 Jan 29, 2024
- CVES ★ 5 Feb 13, 2024
- CVE-2023-36845 - Juniper Firewall Remote code execution (RCE) ★ 4 Sep 29, 2023
- CVE-2023-36845 PoC script automates the PoC for CVE-2023-36845 targeting Juniper Networks Junos OS's J-Web component on EX and SRX Series devices. It exploits a PHP flaw, allowing remote modification of the PHPRC variable. Successful exploitation can lead to code injection and execution. ★ 4 Oct 2, 2023
- halencarjunior/CVE-2023-36845 ★ 1 Sep 27, 2023
- simrotion13/CVE-2023-36845 ★ 1 Oct 1, 2023
- Juniper RCE (Remote Code Execution) CVE-2023-36845 is a vulnerability that has been identified within Juniper's software. This particular flaw allows for remote code execution, meaning an attacker could run arbitrary code on a system without needing physical access to the device. ★ 1 Jan 30, 2024
- This Python script automates the Proof of Concept (PoC) for CVE-2023-36845, a vulnerability impacting Juniper Networks Junos OS on EX and SRX Series devices. The vulnerability resides in the J-Web component, allowing remote manipulation of the PHPRC variable, potentially leading to code injection. ★ 1 Feb 14, 2024
Warning: public PoCs are sometimes disguised malware. Use them only for authorized testing in an isolated environment. This portal does not host exploit code — it only points to the sources.
EPSS over time FIRST
Oct 12, 2026 → Oct 14, 2026 · 3 reading(s) · max 95.07%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Prioritize edge telemetry for the network-reachable component (proxy, WAF, IDS/IPS).
- Hunt retroactively in logs from before Nov 13, 2023 (KEV listing): exploitation may have started earlier.
Timeline
What happened to this CVE, newest first.
- 2026
- Affected products added · juniper networks/junos os
- SSVC assessment updated
- Record published
- Affected products added · juniper/junos
- CVSS changed · 9.8
- Source status changed · → Analyzed
- Added to CISA KEV (detected)
- Record created in this database
- 2023
- Added to CISA KEV catalog
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 2× References added · Oct 13, 2026 – Oct 13, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
7 on the record
- supportportal.juniper.net/JSA72300
- www.cisa.gov/known-exploited-vulnerabilities-catalog
- github.com/advisories/GHSA-q56g-qr28-qh57
- packetstormsecurity.com/files/176969/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.htm
- nvd.nist.gov/vuln/detail/CVE-2023-36845
- packetstormsecurity.com/files/174397/Juniper-JunOS-SRX-EX-Remote-Code-Execution.html
- packetstormsecurity.com/files/174865/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.htm
Elsewhere on this site
Related CVEs (same products)
- High CVE-2026-102077 Junos OS: MX Series with SPC3: In a source NAT scenario malformed packets will lead to resource leaks and eventually traffic stops 1d
- Critical CVE-2026-101982 Junos OS and Junos OS Evolved: A EVPN peer causes an rpd crash or root-level compromise when EVPN-VPWS is used 1d
- Critical CVE-2026-101983 Junos OS and Junos OS Evolved: An attacker causes remote code execution when J-Web virtual-domain is configured 1d
- Medium CVE-2026-101964 Junos OS and Junos OS Evolved: An attacker can cause an rpd crash via a crafted LDP message 1d
- Medium CVE-2026-101975 Junos OS and Junos OS Evolved: Improper OSPF LSA validation causes an rpd crash when prefix-SID best-route installation is used 1d
- Medium CVE-2026-101972 Junos OS and Junos OS Evolved: Malformed OSPF packets causes routing disruption when OSPF is enabled 1d
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No fixed version, patch or mitigation documented.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2023-36845 is "Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability", rated Critical. It affects Junos (Juniper Networks); versions are in the scope table. It is in CISA KEV: there is evidence of real-world exploitation. CVSS 9.8 describes technical severity. EPSS 95.07% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.