CVE DatabaseCVE-2023-36847
한국어 권고문 →
CVE-2023-368475.3/MEDIUMCISA KEVCWE-306CWE-306

Juniper Networks Junos OS EX Series J-Web Unauthenticated Arbitrary File Upload Vulnerability (CVE-2023-36847) Analysis and Mitigation Guide

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

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Juniper Networks Junos OS on EX Series switches with J-Web interface enabled in specific versions

Impact

Unauthenticated, network-based attackers can upload arbitrary files via J-Web by targeting 'installAppPackage.php', compromising file system integrity and potentially chaining with other flaws for Remote Code Execution (RCE)

Mitigation

Upgrade Junos OS to the recommended patched releases, or immediately disable the J-Web service and restrict management access

Affected Products & Version Scope

Juniper Networks Junos OS on EX Series: All versions prior to 20.4R3-S8; 21.1 versions 21.1R1 and later; 21.2 versions prior to 21.2R3-S6; 21.3 versions prior to 21.3R3-S5; 21.4 versions prior to 21.4R3-S4; 22.1 versions prior to 22.1R3-S3; 22.2 versions prior to 22.2R3-S1; 22.3 versions prior to 22.3R2-S2, 22.3R3; 22.4 versions prior to 22.4R2-S1, 22.4R3

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

To permanently resolve the vulnerability, upgrade the Junos OS to a patched release as recommended by Juniper Networks. Execute the following command in the CLI to apply the update:

bash
# Install the patched Junos OS image and reboot the system
request system software add reboot /var/tmp/junos-install-media-ex-x86-64-20.4R3-S8.tgz

2. Temporary Workaround & Hardening Configuration

If patching cannot be performed immediately, disable the J-Web service entirely to eliminate the attack surface.

bash
# Disable HTTP and HTTPS J-Web management services
configure
delete system services web-management http
delete system services web-management https
commit and-quit

3. Log Audit & IoC Verification Commands

Inspect the web server access logs to identify potential exploitation attempts targeting the vulnerable PHP script.

bash
# Search J-Web access logs for unauthorized requests to the vulnerable endpoint
show log httpd-access | match 'installAppPackage.php'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active in-the-wild exploitation, immediately disable J-Web or upgrade Junos OS to the recommended secure versions.

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-36847) is a Missing Authentication for Critical Function (CWE-306) in the J-Web device management interface of Juniper Networks Junos OS on EX Series. The root cause lies in the 'installAppPackage.php' script, which fails to enforce proper authentication checks before processing file upload requests, allowing unauthenticated external entities to interact with critical system functions.

2. Exploitation Mechanics & Attack Scenario

An unauthenticated remote attacker can initiate an exploit by sending a crafted HTTP POST request directly to the 'installAppPackage.php' endpoint. Because the endpoint lacks session validation, the server processes the multipart payload and writes the uploaded file to the local file system. While this action primarily impacts file system integrity, attackers frequently leverage this capability to upload PHP web shells or malicious configuration files, subsequently chaining it with other vulnerabilities to achieve full system-level Remote Code Execution (RCE).

3. Infrastructure & Business Impact

This vulnerability is actively exploited in the wild and is cataloged in CISA's Known Exploited Vulnerabilities (KEV) list. Successful exploitation allows threat actors to compromise core network switches, potentially leading to unauthorized traffic monitoring, VLAN hopping, and lateral movement within the internal enterprise network, posing a severe threat to business continuity and infrastructure security.

Official Vendor Advisories & References

NVD Original English Description

A Missing Authentication for Critical Function vulnerability in Juniper Networks Junos OS on EX Series allows an unauthenticated, network-based attacker to cause limited impact to the file system integrity. With a specific request to installAppPackage.php that doesn't require authentication an attacker is able to upload arbitrary files via J-Web, leading to a loss of integrity for a certain part of the file system, which may allow chaining to other vulnerabilities. This issue affects Juniper Networks Junos OS on EX Series: * All versions prior to 20.4R3-S8; * 21.1 versions 21.1R1 and later; * 21.2 versions prior to 21.2R3-S6; * 21.3 versions prior to 21.3R3-S5; * 21.4 versions prior to 21.4R3-S4; * 22.1 versions prior to 22.1R3-S3; * 22.2 versions prior to 22.2R3-S1; * 22.3 versions prior to 22.3R2-S2, 22.3R3; * 22.4 versions prior to 22.4R2-S1, 22.4R3.

Frequently Asked SecOps Questions (CVE-2023-36847)

FAQ

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

CVE-2023-36847 is rated CVSS 5.3 (MEDIUM) with a 30-day EPSS exploitation probability of 83.5%. 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-36847?

Primary impacted vendors include juniper across junos os. Scope summary: Juniper Networks Junos OS on EX Series: All versions prior to 20.4R3-S8; 21.1 versions 21.1R1 and later; 21.2 versions prior to 21.2R3-S6; 21.3 versions prior to 21.3R3-S5; 21.4 versions prior to 21.4R3-S4; 22.1 versions prior to 22.1R3-S3; 22.2 versions prior to 22.2R3-S1; 22.3 versions prior to 22.3R2-S2, 22.3R3; 22.4 versions prior to 22.4R2-S1, 22.4R3

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

[Mitigation] Upgrade Junos OS to the recommended patched releases, or immediately disable the J-Web service and restrict management access 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-36847

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-36847 Juniper Networks Junos OS EX Series J-Web Unauthenticated Arbitrary File Upload Vulnerability (CVE-2023-36847) Analysis and Mitigation Guide (CVSS 5.3) - Patch & Workaround | CVE Pulse