Skip to main content
Mallory
MediumExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-36844: PHP External Variable Modification in Juniper Junos OS J-Web on EX Series

Published Aug 17, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS5.3Medium · v3.1
EPSS52.4%99th percentile
CISA KEVYesAdded Nov 13, 2023
In the wildActivePer CISA KEV
Vendor
Juniper Networks
IdentifiersCVE-2023-36844CWE-473 · PHP External Variable Modification

CVE-2023-36844 is a PHP external variable modification vulnerability in the J-Web management interface of Juniper Networks Junos OS on EX Series switches. An unauthenticated network attacker can submit a crafted request to modify important PHP environment variables, resulting in a partial loss of integrity. The vulnerability can be chained with other J-Web flaws to achieve unauthenticated remote code execution. It is part of the J-Web vulnerability set comprising CVE-2023-36844, CVE-2023-36845, CVE-2023-36846, and CVE-2023-36847, which has been exploited in the wild.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Exploitation of this vulnerability alone permits unauthorized modification of certain PHP environment variables and causes a limited integrity impact. When combined with complementary J-Web vulnerabilities, it can enable arbitrary code execution without authentication, compromising the affected switch and potentially enabling data theft or further network intrusion. Remote code execution is an impact of the exploit chain, not an established standalone consequence of CVE-2023-36844.

Mitigation

If you can’t patch tonight, do this now.

Disable J-Web when it is not required or until patched software can be deployed. If J-Web must remain enabled, restrict access to trusted administrative hosts and management networks, and remove direct Internet exposure. Access restrictions reduce exposure but do not correct the underlying vulnerability.

Remediation

Patch, then assume compromise.

Upgrade affected EX Series devices to a Juniper release containing the fix. Fixed release thresholds include 20.4R3-S9, 21.2R3-S7, 21.3R3-S5, 21.4R3-S5, 22.1R3-S4, 22.2R3-S2, 22.3R3-S1, 22.4R2-S2 or 22.4R3, and 23.2R1-S1 or 23.2R2. All 21.1 releases from 21.1R1 onward are identified as affected; migrate those installations to an applicable fixed release on another supported branch. Select a currently supported release that addresses the complete J-Web vulnerability chain.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
CVE-2023-36844This repository contains a Python exploit script (CVE-2023-36844.py) targeting CVE-2023-36844, a remote code execution vulnerability in Juniper JunOS (SRX and EX Series). The exploit works by uploading a crafted PHP file and an INI file to the target device via the /webauth_operation.php endpoint. The PHP payload is designed to execute arbitrary PHP code (default: php_uname()) and return the output, delimited by unique markers for easy extraction. The script supports multi-threaded execution and can process a list of targets provided in a file. Results are saved to a local Results/Results.txt file. The repository also includes a README.md with usage instructions and a requirements.txt listing Python dependencies. The exploit is operational and provides a working method for remote code execution on vulnerable JunOS devices.ThatNotEasy · Disclosed Sep 20, 2023 · python · networkOperationaljuniper-rce_cve-2023-36844This repository contains a Python proof-of-concept exploit targeting a chain of vulnerabilities (CVE-2023-36844, CVE-2023-36845, CVE-2023-36846, CVE-2023-36847) in Juniper JunOS SRX and EX Series devices. The exploit leverages a pre-authentication file upload vulnerability in the J-Web interface to upload a malicious PHP file and a crafted INI file. By manipulating the PHPRC environment variable via HTTP requests, the attacker can force the web server to execute arbitrary PHP code. The main exploit script (watchtowr-vs-junos_juniper_2023-08-25.py) takes a target URL and an optional PHP function as arguments, uploads the payloads, and triggers code execution, returning the output. The repository is structured with a README.md providing background and usage instructions, and a single Python exploit script implementing the attack. The exploit is a functional proof-of-concept and demonstrates remote code execution on vulnerable, unpatched JunOS devices.watchtowrlabs · Disclosed Aug 25, 2023 · python · networkPoCCVE-2023-36844_Juniper_RCEThis repository contains a proof-of-concept exploit for a chain of vulnerabilities (CVE-2023-36844, CVE-2023-36845, CVE-2023-36846, CVE-2023-36847) affecting Juniper JunOS SRX and EX Series devices. The exploit is implemented in Python (exploit.py) and allows an attacker to achieve remote code execution by uploading a malicious PHP file and a crafted INI file to the target device via the /webauth_operation.php endpoint. The exploit then triggers execution of arbitrary PHP code (by default, phpinfo(), but customizable via a command-line argument). The README provides a brief description and a Shodan dork for finding potentially vulnerable devices. The exploit demonstrates the attack chain but is a proof-of-concept and not weaponized for mass exploitation.r3dcl1ff · Disclosed Sep 24, 2023 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Juniper NetworksJunosoperating_system
FAQ

Frequently asked questions

Is CVE-2023-36844 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 13, 2023.
Is there a public exploit for CVE-2023-36844?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2023-36844, the earliest disclosed Aug 25, 2023.
Is there a patch for CVE-2023-36844?
Upgrade affected EX Series devices to a Juniper release containing the fix. Fixed release thresholds include 20.4R3-S9, 21.2R3-S7, 21.3R3-S5, 21.4R3-S5, 22.1R3-S4, 22.2R3-S2, 22.3R3-S1, 22.4R2-S2 or 22.4R3, and 23.2R1-S1 or 23.2R2.
What products are affected by CVE-2023-36844?
Juniper Networks Junos.
How severe is CVE-2023-36844?
CVE-2023-36844 has a CVSS v3.1 score of 5.3 (Medium) and an EPSS score of 52.4% (99th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+12 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures5YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.