CVE-2023-36851 — Juniper Junos OS SRX Series Missing Authentication for Critical Function Vulnerability

CVE-2023-36851

Juniper Junos OS SRX J-Web — Unauthenticated File Upload via webauth_operation.php; Chained with CVE-2023-36844 for Pre-Auth RCE; August 2023 Out-of-Cycle Bulletin

What is Juniper Junos OS J-Web?

J-Web is the PHP-based web management interface for Juniper Junos OS devices, providing browser-accessible administration of SRX Series firewalls and EX Series switches. The webauth_operation.php endpoint handles web authentication operations in J-Web. Missing authentication on this endpoint allows unauthenticated attackers to upload arbitrary files — the file-upload stage of the August 2023 Juniper J-Web pre-auth RCE chain, alongside CVE-2023-36846 (SRX user.php) and CVE-2023-36847 (EX installAppPackage.php).

Overview

CVE-2023-36851 is a missing authentication for a critical function vulnerability (CWE-306) in the Juniper Junos OS J-Web interface on SRX Series firewalls. A crafted HTTP request to webauth_operation.php — which does not require authentication — allows an unauthenticated remote attacker to upload arbitrary files to a filesystem path accessible by J-Web. When chained with CVE-2023-36844 (PHP external variable modification), this provides unauthenticated remote code execution with a combined CVSS of 9.8 Critical.

The datePublished for CVE-2023-36851 (September 27, 2023) is notably later than Juniper's August 17 bulletin — the CVE was assigned and formally published six weeks after the patch was available. CISA added all four J-Web chain CVEs to the KEV catalog simultaneously on November 13, 2023.

Affected Versions

Product Affected Fixed
Junos OS on SRX Series 20.4 prior to 20.4R3-S9 20.4R3-S9
Junos OS on SRX Series 21.2 prior to 21.2R3-S7 21.2R3-S7
Junos OS on SRX Series 21.4 prior to 21.4R3-S5 21.4R3-S5
Junos OS on SRX Series 22.1 prior to 22.1R3-S4 22.1R3-S4
Junos OS on SRX Series 22.2 prior to 22.2R3-S2 22.2R3-S2
Junos OS on SRX Series 22.3 prior to 22.3R2-S2 22.3R2-S2
Junos OS on SRX Series 22.4 prior to 22.4R2-S1 22.4R2-S1

Technical Details

The webauth_operation.php endpoint handles web authentication workflow actions in J-Web. Missing the authentication guard (CWE-306) on this endpoint means a crafted unauthenticated POST request can trigger file write operations:

  1. Upload arbitrary file (CVE-2023-36851) — send a crafted unauthenticated request to webauth_operation.php with a PHP webshell as the uploaded file; the file is written to a J-Web-accessible path on the SRX filesystem
  2. Modify PHP environment (CVE-2023-36844) — exploit the companion CVE to manipulate PHP env vars to include or execute the uploaded file
  3. Remote code execution — the PHP webshell executes under the J-Web web server process, enabling OS-level commands on the Junos platform

CVE-2023-36851 provides an alternative file upload path to CVE-2023-36846 (user.php) on SRX devices — giving attackers multiple unauthenticated file-write endpoints to leverage in the chain.

Exploitation Context

The four KEV-listed Juniper J-Web CVEs (CVE-2023-36844, CVE-2023-36846, CVE-2023-36847, CVE-2023-36851) represent one of the most significant network infrastructure vulnerability chains of 2023. SRX Series firewalls in particular are deployed as enterprise network perimeter security devices — compromise provides full visibility into traffic inspected by the firewall and the ability to modify security policies silently. Threat actors including Chinese-nexus groups were observed targeting Juniper network devices in 2023.

Remediation

  1. Apply the Juniper August 2023 out-of-cycle patch — update to fixed Junos OS versions; all five companion CVEs are addressed in the same Juniper security update.
  2. Disable J-Web — the most effective mitigation is to disable J-Web entirely; SRX firewalls should be managed via SSH CLI and NetConf rather than the web interface.
  3. Restrict J-Web to management networks — if J-Web cannot be disabled, apply firewall filters to allow J-Web access only from dedicated management IP ranges; the interface must not be internet-accessible.
  4. Check for webshells — inspect the J-Web directory structure for unexpected PHP files that may have been uploaded via CVE-2023-36851 or companion CVEs during the exposure window.

Key Details

PropertyValue
CVE ID CVE-2023-36851
Vendor / Product Juniper — Junos OS
NVD Published2023-09-27
NVD Last Modified2026-02-26
CVSS 3.1 Score5.3
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
SeverityMEDIUM
CWE CWE-306 find similar ↗
CISA KEV Added2023-11-13
CISA KEV Deadline2023-11-17
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Required Action

CISA BOD 22-01 Deadline: 2023-11-17. Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Timeline

DateEvent
2023-08-17Juniper releases out-of-cycle security bulletin disclosing the J-Web vulnerability chain for SRX and EX Series; patch available
2023-09-27CVE-2023-36851 formally published
2023-11-13CISA adds CVE-2023-36851 to the Known Exploited Vulnerabilities catalog — alongside CVE-2023-36844, CVE-2023-36846, and CVE-2023-36847
2023-11-17CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2023-36851 Vulnerability Database
CISA KEV Catalog Entry US Government