CVE DatabaseCVE-2023-36844
한국어 권고문 →
CVE-2023-368445.3/MEDIUMCISA KEVCWE-473

Juniper Junos OS EX Series J-Web PHP External Variable Modification Vulnerability (CVE-2023-36844) Security Advisory

⚡ Jump to Patch
Affected Vendors
juniper
Affected Components
junos_os
Published Date
2023-08-17
CVSS v3.1
5.3
MEDIUM
EPSS (30d)
90.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Juniper Networks Junos OS EX Series switches with the J-Web interface enabled

Impact

Unauthenticated, network-based attackers can manipulate PHP environment variables, potentially leading to unauthorized file uploads and remote code execution (RCE) when chained

Mitigation

Apply the latest Junos OS security patches immediately, or disable the J-Web service / restrict access to trusted IP addresses

Affected Products & Version Scope

Juniper Networks Junos OS on EX 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.3R3-S1; 22.4 versions prior to 22.4R2-S2, 22.4R3; 23.2 versions prior to 23.2R1-S1, 23.2R2

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Upgrade the Junos OS on affected EX Series switches to the recommended patched releases using the CLI:

bash
# Download and install the patched Junos OS image
cli
request system software add reboot /var/tmp/junos-install-media-usb-trigger.tgz
# Reboot the system to apply the update
request system reboot

2. Temporary Workaround & Hardening Configuration

If patching cannot be performed immediately, disable the J-Web service entirely or restrict access using firewall filters (ACLs) to trusted management networks.

bash
# Disable J-Web service
configure
delete system services web-management
commit and-quit

# Alternatively, restrict J-Web access (ports 80/443) to a trusted IP range (e.g., 192.168.10.0/24)
set firewall family inet filter MGMT_FILTER term ALLOW_MGMT from source-address 192.168.10.0/24
set firewall family inet filter MGMT_FILTER term ALLOW_MGMT from destination-port [ http https ]
set firewall family inet filter MGMT_FILTER term ALLOW_MGMT then accept
set firewall family inet filter MGMT_FILTER term DENY_ALL_OTHER then discard
set interfaces lo0 unit 0 family inet filter input MGMT_FILTER
commit and-quit

3. Log Audit & IoC Verification Commands

Inspect J-Web access logs for suspicious attempts to manipulate PHP environment variables or load external configuration files.

bash
# Search J-Web access logs for environment variable manipulation keywords
show log httpd-access | match 'PHPRC'
show log httpd-access | match 'auto_prepend_file'

# Verify the current Junos OS version
show version
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active exploitation in the wild, immediately disable J-Web or upgrade to a patched Junos OS version to secure your network infrastructure.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2023-36844) is a PHP External Variable Modification vulnerability (CWE-473) residing in the J-Web management interface of Juniper Networks Junos OS on EX Series switches. Due to insufficient input validation and insecure PHP configuration handling within J-Web, an unauthenticated, network-based attacker can send crafted HTTP requests to modify critical PHP environment variables (such as PHPRC or PHP_ADMIN_VALUE).

2. Exploitation Mechanics & Attack Scenario

An attacker sends a malicious HTTP POST request to the J-Web server containing parameters designed to override environment variables. By manipulating the 'PHPRC' variable, the attacker can force PHP to load a custom 'php.ini' configuration file from an arbitrary location (e.g., '/tmp' or an external share). This allows the attacker to alter runtime behaviors, such as enabling file uploads or using 'auto_prepend_file' to execute arbitrary PHP code. While this vulnerability primarily causes a partial loss of integrity on its own, it is highly dangerous as it can be chained with other vulnerabilities to achieve full Remote Code Execution (RCE) without authentication.

3. Infrastructure & Business Impact

This vulnerability is actively exploited in the wild and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. If an attacker successfully compromises an EX Series switch, they can gain administrative control over network infrastructure, monitor internal traffic, alter VLAN configurations, and pivot deeper into the enterprise network, posing a severe threat to business continuity and data confidentiality.

Official Vendor Advisories & References

NVD Original English Description

A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series allows an unauthenticated, network-based attacker to control certain, important environment variables. Using a crafted request an attacker is able to modify certain PHP environment variables leading to partial loss of integrity, which may allow chaining to other vulnerabilities. This issue affects Juniper Networks Junos OS on EX 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.3R3-S1; * 22.4 versions prior to 22.4R2-S2, 22.4R3; * 23.2 versions prior to 23.2R1-S1, 23.2R2.

Frequently Asked SecOps Questions (CVE-2023-36844)

FAQ

Q1. How critical is CVE-2023-36844 and is it actively exploited in the wild?

CVE-2023-36844 is rated CVSS 5.3 (MEDIUM) with a 30-day EPSS exploitation probability of 90.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2023-36844?

Primary impacted vendors include juniper across junos_os. Scope summary: Juniper Networks Junos OS on EX 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.3R3-S1; 22.4 versions prior to 22.4R2-S2, 22.4R3; 23.2 versions prior to 23.2R1-S1, 23.2R2

Q3. What temporary mitigations or workarounds exist for CVE-2023-36844 before patching?

[Mitigation] Apply the latest Junos OS security patches immediately, or disable the J-Web service / restrict access to trusted IP addresses Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2023-36844

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (juniper)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2023-36844 Juniper Junos OS EX Series J-Web PHP External Variable Modification Vulnerability (CVE-2023-36844) Security Advisory (CVSS 5.3) - Patch & Workaround | CVE Pulse