# CVE-2023-36845: Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to control an important environment variable

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2023-11-13; federal due date 2023-11-17
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 91.41% (percentile 100, 2026-11-26)
- **CWE:** CWE-473
- **Aliases:** EDB-51776
- **Published:** 2023-08-17T19:17:57.183Z
- **Modified:** 2026-11-23T00:00:00.000Z

## Who should check

- Anyone running Juniper Networks Junos OS \< 20.4R3-S9; \>= 21.1, \< 21.1\*; \>= 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.3R2-S2, 22.3R3-S1; \>= 22.4, \< 22.4R2-S1, 22.4R3; \>= 23,2, \< 23.2R1-S1, 23.2R2

## 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.

## Affected and fixed versions

- Juniper Networks Junos OS: \< 20.4R3-S9; \>= 21.1, \< 21.1\*; \>= 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.3R2-S2, 22.3R3-S1; \>= 22.4, \< 22.4R2-S1, 22.4R3; \>= 23,2, \< 23.2R1-S1, 23.2R2 (cvelist)

## Mitigation

- Vendor workaround: Disable J-Web, or limit access to only trusted hosts.

## Timeline

- 2023-08-17: Published
- 2023-11-13: Added to CISA KEV (exploited in the wild)
- 2023-11-17: CISA remediation due date for US federal agencies
- 2026-11-23: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-36845. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-36845.md
Affected: Juniper Networks Junos OS < 20.4R3-S9; >= 21.1, < 21.1*; >= 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.3R2-S2, 22.3R3-S1; >= 22.4, < 22.4R2-S1, 22.4R3; >= 23,2, < 23.2R1-S1, 23.2R2
Fixed in: Juniper Networks Junos OS 20.4R3-S9, Juniper Networks Junos OS 21.1*, Juniper Networks Junos OS 21.2R3-S7, Juniper Networks Junos OS 21.3R3-S5, Juniper Networks Junos OS 21.4R3-S5, Juniper Networks Junos OS 22.1R3-S4, Juniper Networks Junos OS 22.2R3-S2, Juniper Networks Junos OS 22.3R2-S2, Juniper…

Steps:
1. Search this machine and project for Juniper Networks Junos OS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-36845 being exploited?

Yes. CISA lists CVE-2023-36845 in its Known Exploited Vulnerabilities catalog since 2023-11-13, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 91.41% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-36845?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-36845?

Juniper Networks Junos OS \< 20.4R3-S9; \>= 21.1, \< 21.1\*; \>= 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.3R2-S2, 22.3R3-S1; \>= 22.4, \< 22.4R2-S1, 22.4R3; \>= 23,2, \< 23.2R1-S1, 23.2R2.

### Is there a fix for CVE-2023-36845?

Yes. Fixed in Juniper Networks Junos OS 20.4R3-S9, Juniper Networks Junos OS 21.1\*, Juniper Networks Junos OS 21.2R3-S7, Juniper Networks Junos OS 21.3R3-S5, Juniper Networks Junos OS 21.4R3-S5, Juniper Networks Junos OS 22.1R3-S4, Juniper Networks Junos OS 22.2R3-S2, Juniper Networks Junos OS 22.3R2-S2, Juniper Networks Junos OS 22.4R2-S1, Juniper Networks Junos OS 23.2R1-S1. Vendor workaround: Disable J-Web, or limit access to only trusted hosts.

### How do I check if I'm affected by CVE-2023-36845?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://supportportal.juniper.net/JSA72300>
- exploit: <http://packetstormsecurity.com/files/174865/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html>
- exploit: <http://packetstormsecurity.com/files/176969/Juniper-SRX-Firewall-EX-Switch-Remote-Code-Execution.html>
- exploit: <https://www.exploit-db.com/exploits/51776>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-36845>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-36845>
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/51776>
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2023-36845> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-36845>
