CVE-2023-36845: Juniper Junos OS EX Series and SRX Series PHP External Variable Modification
Juniper Junos OS · listed in the CISA catalog of actively exploited vulnerabilities since 2023-11-13.
- CVSS v3.1 (CVE record)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 95%
- higher than 99.8% of all CVEs
- Added to CISA KEV
- 2023-11-13
- US federal due date 2023-11-17
- Automatable (CISA SSVC)
- yes
- technical impact: total
CVE-2023-36845 explained
CVE-2023-36845 is a PHP External Variable Modification flaw in J-Web, the web interface of Juniper Networks Junos OS on EX Series and SRX Series devices. An unauthenticated attacker on the network can alter the PHP execution environment and run code remotely. CISA lists it as known to be exploited, so affected devices need prompt attention.
Impact
An unauthenticated, network-based attacker can execute code remotely through J-Web by modifying the PHP execution environment. No user interaction or privileges are needed and attack complexity is low. Confidentiality, integrity and availability impacts are all high. CISA rates it automatable, so it can be exploited at scale, with total technical impact, meaning full control of the affected component. CISA reports active exploitation.
Who is affected
Juniper Networks Junos OS on EX Series and SRX Series: versions before 20.4R3-S9, the whole 21.1 branch, and the 21.2, 21.3, 21.4, 22.1, 22.2, 22.3, 22.4 and 23.2 branches before their fixed releases. Fixed releases: 20.4R3-S9, 21.2R3-S7, 21.3R3-S5, 21.4R3-S5, 22.1R3-S4, 22.2R3-S2, 22.3R2-S2, 22.3R3-S1, 22.4R2-S1, 22.4R3, 23.2R1-S1, 23.2R2. The record names no fixed release for 21.1.
Written with AI from the data on this page and checked against it automatically.
Official description
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.
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- Juniper Networks Junos OSEX Series, SRX SeriesAffectedFixed in
- < 20.4R3-S9
- 21.1.x
- ≥ 21.2, < 21.2R3-S7
- ≥ 21.3, < 21.3R3-S5
- ≥ 21.4, < 21.4R3-S5
- ≥ 22.1, < 22.1R3-S4
- ≥ 22.2, < 22.2R3-S2
- ≥ 22.3, < 22.3R3-S1
- ≥ 22.4, < 22.4R3
- ≥ 23,2, < 23.2R2
- 20.4R3-S9
- 21.2R3-S7
- 21.3R3-S5
- 21.4R3-S5
- 22.1R3-S4
- 22.2R3-S2
- 22.3R2-S2
- 22.3R3-S1
- 22.4R2-S1
- 22.4R3
- 23.2R1-S1
- 23.2R2
| Product | Affected | Fixed in |
|---|---|---|
| Juniper Networks Junos OSEX Series, SRX Series |
|
|
How to fix it
- Update to a fixed version: 20.4R3-S9, 21.2R3-S7, 21.3R3-S5, 21.4R3-S5, 22.1R3-S4, 22.2R3-S2, 22.3R2-S2, 22.3R3-S1 and 4 more (see the table).
- Vendor advisory: supportportal.juniper.net/JSA72300
- CISA's deadline for US federal agencies: 2023-11-17 (passed) – a useful benchmark for everyone else, too.
Vendor solution: The following software releases have been updated to resolve this specific issue: 20.4R3-S9*, 21.2R3-S7*, 21.3R3-S5, 21.4R3-S5*, 22.1R3-S4*, 22.2R3-S2, 22.3R2-S2, 22.3R3-S1*, 22.4R2-S1, 22.4R3*, 23.2R1-S1, 23.2R2*, 23.4R1*, and all subsequent releases. *Pending Publication
Workaround: Disable J-Web, or limit access to only trusted hosts.
What to do
- Upgrade EX Series and SRX Series devices to a fixed Junos OS release for your branch, such as
21.4R3-S5,22.2R3-S2or23.2R2. - For devices on the
21.1branch, which has no fixed release in the record, move to a branch with a listed fixed release. - Where you cannot upgrade immediately, apply the mitigations in Juniper's advisory, as CISA's required action directs.
- Restrict access to J-Web so it is not reachable from the internet or untrusted networks.
- Check affected devices for signs of compromise, since the vulnerability is known to be exploited.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-473 PHP External Variable Modification
Questions about CVE-2023-36845
- Do attackers need credentials to exploit CVE-2023-36845?
- No. The vulnerability can be exploited by an unauthenticated attacker over the network, with no user interaction, through the J-Web interface.
- Is CVE-2023-36845 being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2023-11-13 with a US federal due date of 2023-11-17. Ransomware use is listed as unknown.
- What does CISA require if I cannot patch?
- CISA's required action is to apply mitigations per vendor instructions, or discontinue use of the product if mitigations are unavailable.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.