What is Juniper Junos OS J-Web?
Juniper Junos OS is the operating system running Juniper EX Series switches. J-Web is the browser-accessible PHP management interface for Junos OS devices. The installAppPackage.php endpoint is part of J-Web's package management functionality for installing software packages on the switch. Missing authentication on this endpoint allows unauthenticated attackers to upload files, which is the file-upload stage of a pre-auth RCE chain when combined with CVE-2023-36844's PHP environment variable modification capability.
Overview
CVE-2023-36847 is a missing authentication for a critical function vulnerability (CWE-306) in the Juniper Junos OS J-Web interface on EX Series switches. The installAppPackage.php endpoint does not require authentication, allowing an unauthenticated remote attacker to upload arbitrary files via J-Web. Like CVE-2023-36846 (the SRX companion), this provides the file-upload stage of a pre-auth RCE chain when combined with CVE-2023-36844.
All five companion J-Web vulnerabilities were disclosed in Juniper's August 17, 2023 out-of-cycle bulletin and added to CISA KEV together on November 13, 2023.
Affected Versions
| Product | Affected | Fixed |
|---|---|---|
| Junos OS on EX Series | 20.4 prior to 20.4R3-S9 | 20.4R3-S9 |
| Junos OS on EX Series | 21.2 prior to 21.2R3-S7 | 21.2R3-S7 |
| Junos OS on EX Series | 21.4 prior to 21.4R3-S5 | 21.4R3-S5 |
| Junos OS on EX Series | 22.1 prior to 22.1R3-S4 | 22.1R3-S4 |
| Junos OS on EX Series | 22.2 prior to 22.2R3-S2 | 22.2R3-S2 |
| Junos OS on EX Series | 22.3 prior to 22.3R2-S2 | 22.3R2-S2 |
| Junos OS on EX Series | 22.4 prior to 22.4R2-S1 | 22.4R2-S1 |
Technical Details
The installAppPackage.php endpoint's missing authentication (CWE-306) allows any unauthenticated HTTP request to trigger a file write operation to a filesystem path managed by J-Web. In the combined exploit chain:
- Upload a PHP webshell (CVE-2023-36847) — POST a PHP file to the
installAppPackage.phpendpoint without authentication; the file is written to the J-Web accessible filesystem - Modify PHP environment variables (CVE-2023-36844) — manipulate PHP env vars to control how J-Web handles subsequent PHP execution, pointing it to include or auto-prepend the uploaded file
- Execute the webshell — the combination results in the uploaded PHP code being evaluated in the J-Web PHP context
The EX Series chain uses CVE-2023-36847 as the file-upload stage, while the SRX chain uses CVE-2023-36846 (user.php) or CVE-2023-36851 (webauth_operation.php).
Exploitation Context
Compromised EX Series switches provide an attacker access to the switch's management plane — enabling VLAN manipulation, spanning tree attacks, and port mirroring for traffic capture across all connected hosts in the switched environment. Enterprise switches are high-value targets because a single compromised switch can provide visibility into all traffic from the dozens or hundreds of hosts connected to it.
Remediation
- Apply the Juniper August 2023 out-of-cycle patch — upgrade to fixed Junos OS versions; the patch addresses all five companion J-Web CVEs including CVE-2023-36844.
- Disable J-Web on EX Series switches — switches are typically managed via SSH CLI; disable J-Web to eliminate the web-based attack surface entirely.
- Restrict J-Web to management VLANs — if J-Web must remain enabled, enforce firewall filters to allow J-Web access only from designated management subnets.
- Inspect logs for unauthenticated POSTs to
installAppPackage.phpas indicators of exploitation attempts.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2023-36847 |
| Vendor / Product | Juniper — Junos OS |
| NVD Published | 2023-08-17 |
| NVD Last Modified | 2026-02-26 |
| CVSS 3.1 Score | 5.3 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Severity | MEDIUM |
| CWE | CWE-306 find similar ↗ |
| CISA KEV Added | 2023-11-13 |
| CISA KEV Deadline | 2023-11-17 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2023-08-17 | Juniper releases out-of-cycle security bulletin disclosing J-Web vulnerabilities for EX and SRX Series; CVE-2023-36847 patched alongside CVE-2023-36844, CVE-2023-36846, CVE-2023-36851 |
| 2023-11-13 | CISA adds CVE-2023-36847 to the Known Exploited Vulnerabilities catalog |
| 2023-11-17 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2023-36847 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |