CVE-2023-36845: Unauthenticated Remote Code Execution in Juniper Junos OS J-Web via PHPRC Modification
- Vendor
- Juniper Networks
CVE-2023-36845 is a PHP external variable modification vulnerability in the J-Web management interface of Juniper Networks Junos OS on EX Series switches and SRX Series devices. An unauthenticated, network-based attacker can submit a crafted request that sets the PHPRC environment variable, altering PHP configuration loading and execution behavior to inject and execute code. Publicly demonstrated exploitation also chains this vulnerability with CVE-2023-36846, an unauthenticated file-upload vulnerability, to load attacker-controlled PHP code. Exploitation has been observed in the wild.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables unauthenticated remote code execution on the affected device, compromising the confidentiality and integrity of information accessible to the executing process and potentially disrupting device operation. Observed exploitation attempts also sought disclosure of local account information. Compromise of these network infrastructure devices can provide a foothold for broader network intrusion. The available information does not establish that exploitation inherently grants root privileges.
Mitigation
If you can’t patch tonight, do this now.
Disable J-Web if it is not required. If J-Web must remain enabled, restrict access to trusted administrative hosts and prevent access from the Internet or other untrusted networks. These access restrictions reduce exposure but do not replace installation of a fixed Junos OS release.
Remediation
Patch, then assume compromise.
Install a Juniper-fixed Junos OS release appropriate to the device and release branch: 20.4R3-S9; 21.2R3-S7; 21.3R3-S5; 21.4R3-S5; 22.1R3-S4; 22.2R3-S2; 22.3R2-S2 or 22.3R3-S1; 22.4R2-S1 or 22.4R3; or 23.2R1-S1 or 23.2R2, or a later fixed release in the corresponding branch. The 21.1 branch is affected from 21.1R1 onward, with no fixed 21.1 release identified; migrate affected installations to a supported fixed release.
Exploits
5 exploits validated by Mallory's analysis. Hidden: 7 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-36845 exploited in the wild?
- Yes. As of Nov 10, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 13, 2023.
- Is there a public exploit for CVE-2023-36845?
- Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2023-36845, the earliest disclosed Aug 17, 2023.
- Is there a patch for CVE-2023-36845?
- Install a Juniper-fixed Junos OS release appropriate to the device and release branch: 20.4R3-S9; 21.2R3-S7; 21.3R3-S5; 21.4R3-S5; 22.1R3-S4; 22.2R3-S2; 22.3R2-S2 or 22.3R3-S1; 22.4R2-S1 or 22.4R3; or 23.2R1-S1 or 23.2R2, or a later fixed release in the corresponding branch. The 21.1 branch is affected from 21.1R1 onward, with no fixed 21.1 release identified; migrate affected installations to a supported fixed release.
- What products are affected by CVE-2023-36845?
- Juniper Networks Junos.
- How severe is CVE-2023-36845?
- CVE-2023-36845 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 91.4% (100th percentile) as of Nov 10, 2026.
Recent activity
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.