Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-36845

CRITICAL 9.8ExploitedPoCEPSS 100%

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

Also known as EDB-51776

Mitigation

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

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

Vulnerability facts

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 Networks Junos OS 22.4R2-S1, Juniper Networks Junos OS 23.2R1-S1
Exploited in the wild
Yes: in CISA KEV since 2023-11-13; federal due date 2023-11-17
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
91.41% chance of exploitation in 30 days (percentile 100, 2026-11-26)
CWE
CWE-473
Published
Modified

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

Package / productAffectedFixedSource
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

Timeline

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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors