home / blog
2026-11-09 · critical
CVE-2023-36845: Critical RCE in Juniper Networks Junos OS
Critical RCE (CVSS 9.8) in Juniper Junos: PHPRC manipulation in J-Web. Unauthenticated attacks. Patches available.

CVE-2023-36845 is a PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS affecting enterprise routers and switches of EX and SRX series. An unauthenticated attacker sends a crafted request manipulating the PHPRC variable, altering the PHP execution environment and injecting arbitrary code. The impact is complete Remote Code Execution on critical enterprise network infrastructure devices.
The CVSS score is 9.8 (critical): no authentication required, standard network access, default configuration sufficient. Status confirmed by Juniper Networks (official disclosure 2023-08-17). Current GitHub signals indicate repositories declaring public exploits, showing the vulnerability remains of interest to researchers and attackers. Affected versions are numerous, from 20.4 to 23.2, covering the installed base of thousands of organizations.
Priority defensive actions: (1) Run network scan to identify Juniper EX and SRX routers and switches, document installed versions; (2) Compare versions against patched versions list; (3) Plan upgrade in maintenance window, priority for Internet-exposed assets; (4) Implement J-Web access restrictions also via private networks; (5) If upgrade is not immediately possible, isolate the device from public network or place it behind advanced access control systems.
At a glance
- What
- CVE-2023-36845 is a PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS for EX Series and SRX Series. Unauthenticated attacker manipulates PHPRC variable via crafted request, altering PHP execution environment and injecting arbitrary code.
- Severity
- Critical (CVSS 9.8). Remote Code Execution without authentication on enterprise routers and switches. No attack effort, standard network access, default configuration.
- Affected versions
- EX and SRX Series: prior 20.4R3-S9; 21.1 and later; 21.2 prior 21.2R3-S7; 21.3 prior 21.3R3-S5; 21.4 prior 21.4R3-S5; 22.1 prior 22.1R3-S4; 22.2 prior 22.2R3-S2; 22.3 prior 22.3R2-S2 and 22.3R3-S1; 22.4 prior 22.4R2-S1 and 22.4R3; 23.2 prior 23.2R1-S1 and 23.2R2.
- Fix
- Update to specified patch versions for each release line. Juniper Networks released updates for all affected series. No workaround: patch is mandatory.
- Status
- Confirmed by Juniper Networks (published 2023-08-17). Current GitHub signals (2026-11-09) indicate repositories declaring public exploits. Vulnerability active and relevant.
- Action
- 1. Inventory Juniper EX and SRX routers/switches with installed version. 2. Compare against patched versions. 3. Plan priority update for exposed assets. 4. Monitor and restrict J-Web access to authorized IPs. 5. Isolate unpatched devices from public network.
Sources: NVD, CVE-2023-36845