cve.bz

CVE-2023-36845 Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability

9.8 criticalKEVExploitEPSS 91%

Critical (9.8) in Juniper Junos OS. In CISA KEV since 2023-11-13. EPSS 91% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
91% (unchanged from 95% a week ago; 95% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2023-11-13, due 2023-11-17
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2023-11-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-473 PHP External Variable Modification
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-36845 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-36845?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-36845?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-36845 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Juniper Networks Junos OSbefore 20.4R3-S9
Juniper Networks Junos OSfrom 21.1 before 21.1*
Juniper Networks Junos OSfrom 21.2 before 21.2R3-S7
Juniper Networks Junos OSfrom 21.3 before 21.3R3-S5
Juniper Networks Junos OSfrom 21.4 before 21.4R3-S5
Juniper Networks Junos OSfrom 22.1 before 22.1R3-S4
Juniper Networks Junos OSfrom 22.2 before 22.2R3-S2
Juniper Networks Junos OSfrom 22.3 before 22.3R2-S2, 22.3R3-S1
Juniper Networks Junos OSfrom 22.4 before 22.4R2-S1, 22.4R3
Juniper Networks Junos OSfrom 23,2 before 23.2R1-S1, 23.2R2

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Juniper J-Web - Remote Code Execution
  • Emerging Threats Open ET EXPLOIT Junos OS - Unauthenticated PHPRC Environmental Variable Modification M1 (CVE-2023-36844 CVE-2023-36845) sid 2047869
  • Emerging Threats Open ET EXPLOIT Junos OS - Unauthenticated PHPRC Environmental Variable Modification M2 (CVE-2023-36844 CVE-2023-36845) sid 2047870

Attack patterns (CAPEC)

  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON