The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-36845

CVE-2023-36845: Juniper Junos J-Web RCE Vulnerability

CVE-2023-36845 is a PHP External Variable Modification RCE flaw in Juniper Junos J-Web affecting EX and SRX Series. Unauthenticated attackers can remotely execute code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 11, 2026

CVE-2023-36845 Overview

CVE-2023-36845 is a PHP External Variable Modification vulnerability affecting the J-Web interface in Juniper Networks Junos OS running on EX Series switches and SRX Series firewalls. This vulnerability enables an unauthenticated, network-based attacker to achieve remote code execution by manipulating the PHP execution environment through crafted HTTP requests.

The vulnerability stems from improper handling of the PHPRC environment variable, which allows attackers to specify a custom PHP configuration file. By injecting malicious PHP directives through this mechanism, an attacker can execute arbitrary code on the affected device without requiring any authentication credentials.

Critical Impact

This vulnerability is actively exploited in the wild and has been added to CISA's Known Exploited Vulnerabilities (KEV) catalog. Unauthenticated remote attackers can achieve complete system compromise on affected Juniper devices, potentially gaining control over critical network infrastructure.

Affected Products

  • Juniper Junos OS on EX Series (All versions prior to 20.4R3-S9, 21.2R3-S7, 21.3R3-S5, 21.4R3-S5, 22.1R3-S4, 22.2R3-S2, 22.3R2-S2/22.3R3-S1, 22.4R2-S1/22.4R3, 23.2R1-S1/23.2R2)
  • Juniper Junos OS on SRX Series including SRX100, SRX110, SRX210, SRX220, SRX240, SRX300, SRX320, SRX340, SRX345, SRX380, SRX550, SRX650
  • Juniper Junos OS on SRX Series including SRX1400, SRX1500, SRX3400, SRX3600, SRX4000, SRX4100, SRX4200, SRX4600, SRX5000, SRX5400, SRX5600, SRX5800

Discovery Timeline

  • August 17, 2023 - CVE-2023-36845 published to NVD
  • October 24, 2025 - Last updated in NVD database

Technical Details for CVE-2023-36845

Vulnerability Analysis

This vulnerability exploits a fundamental weakness in how the J-Web interface handles PHP environment variables. The J-Web management interface, which provides web-based administration for Junos OS devices, utilizes PHP for server-side processing. The vulnerability allows an attacker to manipulate the PHPRC environment variable through specially crafted HTTP requests, effectively taking control of PHP's configuration.

When exploited, the attacker can specify a custom php.ini configuration file location, enabling them to inject arbitrary PHP directives. This includes the ability to modify critical settings such as auto_prepend_file or auto_append_file, which can be leveraged to execute malicious PHP code before or after the normal script execution. The attack requires no prior authentication, making it particularly dangerous for internet-facing J-Web interfaces.

The impact extends beyond simple code execution—successful exploitation grants attackers the same privileges as the J-Web service, which typically runs with elevated permissions on Juniper devices. This can lead to complete device takeover, network reconnaissance, lateral movement, or denial of service attacks against critical network infrastructure.

Root Cause

The root cause lies in improper input validation and insufficient restrictions on external variable modification within the J-Web PHP execution environment. The application fails to properly sanitize or restrict the PHPRC environment variable, which is supposed to be controlled by the system administrator rather than being modifiable through user input.

PHP's design allows the PHPRC variable to override the default location of the configuration file. By accepting this variable from untrusted input without validation, the J-Web interface inadvertently allows attackers to hijack the PHP runtime configuration, leading to arbitrary code injection and execution.

Attack Vector

The attack is executed over the network against the J-Web management interface. An attacker sends a crafted HTTP request to the vulnerable J-Web endpoint that includes the PHPRC variable set to a path controlled by the attacker. This path typically points to a malicious PHP configuration file that has been uploaded or is accessible to the PHP process.

The malicious configuration file contains directives that cause PHP to execute attacker-controlled code. Common techniques include using auto_prepend_file to include a malicious PHP payload that gets executed before the legitimate script runs. Since no authentication is required, any attacker with network access to the J-Web interface can exploit this vulnerability.

The exploitation typically follows this pattern: the attacker first identifies a Juniper device with J-Web exposed, then crafts a request that sets the PHPRC variable to point to a malicious configuration, and finally triggers the execution of PHP code that provides shell access or executes arbitrary commands on the underlying operating system.

Detection Methods for CVE-2023-36845

Indicators of Compromise

  • Unusual HTTP requests to J-Web interface containing PHPRC variable manipulation in request parameters or headers
  • Unexpected PHP configuration file access attempts in web server logs, particularly to non-standard paths
  • Anomalous process spawning from PHP or httpd processes on Juniper devices
  • Unauthorized configuration changes or new user accounts on affected devices
  • Network connections from Juniper devices to unknown external IP addresses, particularly on non-standard ports

Detection Strategies

  • Monitor J-Web access logs for requests containing suspicious environment variable manipulation patterns, particularly PHPRC references
  • Implement network-based intrusion detection rules to identify exploitation attempts against vulnerable J-Web endpoints
  • Deploy SentinelOne agents where applicable to detect post-exploitation activities and anomalous process behaviors
  • Review Juniper device audit logs for unauthorized CLI access or configuration modifications following J-Web interactions

Monitoring Recommendations

  • Configure SIEM alerting for any access attempts to J-Web interfaces from untrusted networks or IP ranges
  • Implement network segmentation monitoring to detect lateral movement from compromised Juniper devices
  • Enable verbose logging on J-Web interfaces and forward logs to centralized security monitoring infrastructure
  • Establish baseline behavior for J-Web access patterns and alert on deviations

How to Mitigate CVE-2023-36845

Immediate Actions Required

  • Disable J-Web interface immediately if not required for operations using CLI command delete system services web-management
  • Apply network access controls to restrict J-Web access to trusted management networks only
  • Update affected Juniper devices to patched versions as soon as possible following change management procedures
  • Audit all Juniper EX and SRX devices to identify those running vulnerable Junos OS versions
  • Review device configurations and user accounts for any signs of unauthorized modifications

Patch Information

Juniper Networks has released security patches addressing this vulnerability. Organizations should upgrade to the following fixed versions:

  • Junos OS 20.4: Upgrade to 20.4R3-S9 or later
  • Junos OS 21.2: Upgrade to 21.2R3-S7 or later
  • Junos OS 21.3: Upgrade to 21.3R3-S5 or later
  • Junos OS 21.4: Upgrade to 21.4R3-S5 or later
  • Junos OS 22.1: Upgrade to 22.1R3-S4 or later
  • Junos OS 22.2: Upgrade to 22.2R3-S2 or later
  • Junos OS 22.3: Upgrade to 22.3R2-S2, 22.3R3-S1, or later
  • Junos OS 22.4: Upgrade to 22.4R2-S1, 22.4R3, or later
  • Junos OS 23.2: Upgrade to 23.2R1-S1, 23.2R2, or later

Note: Junos OS 21.1 branch is end-of-life; organizations should migrate to a supported version. Consult the Juniper Security Advisory JSA72300 for complete patch information.

Workarounds

  • Disable J-Web interface entirely using CLI: delete system services web-management followed by commit
  • Implement strict firewall rules to block access to J-Web from untrusted networks (default ports TCP/80 and TCP/443)
  • Use out-of-band management networks for device administration instead of in-band J-Web access
  • Deploy a reverse proxy with strong authentication in front of J-Web if it must remain accessible
bash
# Junos CLI commands to disable J-Web interface
configure
delete system services web-management
commit and-quit

# Alternative: Restrict J-Web access to specific trusted hosts
configure
set system services web-management https interface fxp0.0
set firewall filter mgmt-access term allow-jweb from source-address 10.0.0.0/8
set firewall filter mgmt-access term allow-jweb then accept
set firewall filter mgmt-access term deny-all then reject
commit and-quit

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechJuniper Junos

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.36%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-473

  • NVD-CWE-Other
  • Technical References
  • Packet Storm RCE Exploit

  • Packet Storm RCE Exploit

  • CISA Known Exploited Vulnerability CVE-2023-36845
  • Vendor Resources
  • Juniper Security Advisory JSA72300
  • Related CVEs
  • CVE-2024-21591: Juniper Junos RCE Vulnerability

  • CVE-2024-21586: Juniper Junos DoS Vulnerability

  • CVE-2025-21590: Juniper Junos Privilege Escalation Flaw

  • CVE-2023-36844: Juniper Junos PHP Variable Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English