Juniper Junos OS EX Series J-Web PHP External Variable Modification Vulnerability (CVE-2023-36844) Security Advisory
Executive & SecOps Summary
SECOPS ASSESSMENTJuniper Networks Junos OS EX Series switches with the J-Web interface enabled
Unauthenticated, network-based attackers can manipulate PHP environment variables, potentially leading to unauthorized file uploads and remote code execution (RCE) when chained
Apply the latest Junos OS security patches immediately, or disable the J-Web service / restrict access to trusted IP addresses
Affected Products & Version Scope
Remediation & Live Workaround Commands
PATCH & WORKAROUND1. Official Patch & Version Upgrade Commands
Upgrade the Junos OS on affected EX Series switches to the recommended patched releases using the CLI:
# 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 reboot2. 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.
# 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-quit3. Log Audit & IoC Verification Commands
Inspect J-Web access logs for suspicious attempts to manipulate PHP environment variables or load external configuration files.
# 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 versionStop 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.
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
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)
FAQQ1. 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.
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.
🔗 Related Advisories in Similar Stack (juniper)
View Category →Arista VeloCloud Orchestrator (VCO) Remote Code Execution and Privilege Escalation (CVE-2026-93952)
[Affected Scope] Arista VeloCloud Orchestrator (VCO) On-premise deployments.
Cisco Identity Services Engine (ISE) Critical Authentication Bypass Vulnerability (CVE-2026-76460)
[Affected Scope] Cisco Identity Services Engine (ISE) web-based management interface and API endpoints.
SonicWall SMA1000 Work Place Pre-Authentication Server-Side Request Forgery (SSRF) Vulnerability (CVE-2026-83548)
[Affected Scope] SonicWall SMA1000 Series Appliance Work Place interface
Arista VeloCloud Orchestrator (VCO) On-Premises Remote Code Execution and Privilege Bypass (CVE-2026-16812)
[Affected Scope] On-premises deployments of VeloCloud Orchestrator (VCO)
Subscribe to Daily Vulnerability Briefings & KEV Alerts
Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.