All vulnerabilities
CVE-2023-36845

Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerability

Juniper Junos OSNetwork & edge
CVSS
9.8Critical
ExploitationExploited in the wildAdded to KEV 13 Nov 2023CISA KEV
Exploit odds (EPSS)95.1%Chance of exploitation activity in the next 30 days, higher than 99% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in20.4R3-S9Also 21.1*, 21.2R3-S7 and 7 moreCVE List
Federal deadline17 Nov 2023Remediation due date for US federal agenciesCISA KEV
CISA required actionApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. CISA KEV

What fixes it

Show all 10 fixed versions

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Timeline

  1. 17 Aug 2023Exploit code publicMetasploit
  2. 17 Aug 2023, 19:17 UTCPublishedCVE List
  3. 13 Nov 2023Added to CISA KEVCISA KEV

Public exploit code and templates 2

  • Exploit moduleJunos OS PHPRC Environment Variable Manipulation RCE 17 Aug 2023Metasploit
  • Scanner templateJuniper J-Web - Remote Code ExecutionNuclei

Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.

Description

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.

Text from CVE List

Affected versions 10

  • Junos OSaffected: all versions before 20.4R3-S9CVE List
  • Junos OSaffected: 21.1 before 21.1*CVE List
  • Junos OSaffected: 21.2 before 21.2R3-S7CVE List
  • Junos OSaffected: 21.3 before 21.3R3-S5CVE List
  • Junos OSaffected: 21.4 before 21.4R3-S5CVE List
  • Junos OSaffected: 22.1 before 22.1R3-S4CVE List
  • Junos OSaffected: 22.2 before 22.2R3-S2CVE List
  • Junos OSaffected: 22.3 before 22.3R2-S2, 22.3R3-S1CVE List
  • Junos OSaffected: 22.4 before 22.4R2-S1, 22.4R3CVE List
  • Junos OSaffected: 23,2 before 23.2R1-S1, 23.2R2CVE List

References 4