Home / Juniper Networks / Junos OS / CVE-2023-36845
CVE-2023-36845: is it exploited, and which versions of Juniper Networks Junos OS are affected and fixed?
CVE-2023-36845 is a PHP External Variable Modification vulnerability in Juniper Networks Junos OS, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on November 13, 2023, with a federal due date of November 17, 2023. Affected: Junos OS before 20.4R3-S9, Junos OS every 21.1 version, Junos OS from 21.2 before 21.2R3-S7 and 7 more (CVE record by juniper). Fixed in 20.4R3-S9, 21.2R3-S7, 21.3R3-S5, 21.4R3-S5 and 2 more (CVE record by juniper). Severity: Critical (9.8, CVSS 3.1, from juniper).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 28, 2026, 16:16 UTC and NVD November 19, 2026, 07:36 UTC.
What is CVE-2023-36845?
Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to control an important environment variable
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.
From the CVE record by juniper, last updated October 21, 2025, 23:05 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Juniper Networks | Junos OS EX Series, SRX Series | before 20.4R3-S9 every 21.1 version from 21.2 before 21.2R3-S7 from 21.3 before 21.3R3-S5 from 21.4 before 21.4R3-S5 from 22.1 before 22.1R3-S4 from 22.2 before 22.2R3-S2 from 22.3 before 22.3R2-S2, 22.3R3-S1 from 22.4 before 22.4R2-S1, 22.4R3 from 23,2 before 23.2R1-S1, 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 |
As the CVE record by juniper states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| juniper | junos | before 20.4 | operating system |
| juniper | junos | 20.4 | operating system |
| juniper | junos | 21.1 | operating system |
| juniper | junos | 21.2 | operating system |
| juniper | junos | 21.3 | operating system |
| juniper | junos | 21.4 | operating system |
| juniper | junos | 22.1 | operating system |
| juniper | junos | 22.2 | operating system |
| juniper | junos | 22.3 | operating system |
| juniper | junos | 22.4 | operating system |
| juniper | junos | 23.2 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 06:07 UTC.
How severe is CVE-2023-36845?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | juniper |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-36845 exploited in the wild?
- CISA KEV
- Listed as Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability, added November 13, 2023; federal agencies must act by November 17, 2023
- Required action
- Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- Ransomware use
- Unknown
- CISA's summary
- Juniper Junos OS on EX Series and SRX Series contains a PHP external variable modification vulnerability that allows an unauthenticated, network-based attacker to control an important environment variable. 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.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: total (CISA ADP, November 15, 2023)
- EPSS
- 98.7% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-473 PHP External Variable Modification
How do I fix it? (from the CVE record)
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
Is there a workaround? (from the CVE record)
Disable J-Web, or limit access to only trusted hosts.
Where are the vendor advisories and references?
- https://supportportal.juniper.net/JSA72300 vendor-advisory, mitigation
- http://packetstormsecurity.com/files/174865/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/176969/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-36845 government-resource
Who found and reported it?
- LYS, working with DEVCORE Internship Program (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 27, 2023
- Published
- August 17, 2023, 19:17 UTC
- CVE record updated
- October 21, 2025, 23:05 UTC by juniper
- NVD
- Analyzed, last modified June 17, 2026, 06:07 UTC
- Last checked
- CVE list November 28, 2026, 16:16 UTC; NVD November 19, 2026, 07:36 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Junos OS?
- Mar 12, 2025CVE-2025-21590 Juniper Networks Junos OS: improper Isolation or Compartmentalization exploited
- Sep 26, 2023CVE-2023-36851 Juniper Networks Junos OS: missing authentication for a critical function exploited
- Aug 17, 2023CVE-2023-36846 Juniper Networks Junos OS: missing authentication for a critical function exploited
- Aug 17, 2023CVE-2023-36844 Juniper Networks Junos OS: PHP External Variable Modification exploited
- Aug 17, 2023CVE-2023-36847 Juniper Networks Junos OS: missing authentication for a critical function exploited
- May 4, 2020CVE-2020-1631 Juniper Networks Junos OS: path traversal (reading or writing files outside the intended folder) exploited
- Oct 14, 2026CVE-2026-101954 Juniper Networks Junos OS: authentication bypass (improper authentication)
- Oct 14, 2026CVE-2026-101952 Juniper Networks Junos OS: quantity not validated
Questions about CVE-2023-36845
Is CVE-2023-36845 exploited in the wild?
Yes. CISA added CVE-2023-36845 to its Known Exploited Vulnerabilities catalog on November 13, 2023 and set federal agencies a due date of November 17, 2023. FIRST's EPSS gives it a 98.7% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Juniper Networks Junos OS are affected by CVE-2023-36845?
Junos OS before 20.4R3-S9, Junos OS every 21.1 version, Junos OS from 21.2 before 21.2R3-S7, Junos OS from 21.3 before 21.3R3-S5, Junos OS from 21.4 before 21.4R3-S5, Junos OS from 22.1 before 22.1R3-S4 and 4 more, per the CVE record by juniper. The tables above give every range the sources list.
Which version fixes CVE-2023-36845?
20.4R3-S9, 21.2R3-S7, 21.3R3-S5, 21.4R3-S5, 22.1R3-S4 and 22.2R3-S2, per the CVE record by juniper. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-36845?
Critical (9.8, CVSS 3.1, from juniper). The severity table above shows each score with its source.
Where is the official record of CVE-2023-36845?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.