Juniper Networks Junos OS
Junos OS: EX Series: A PHP vulnerability in J-Web allows an unauthenticated attacker to control important environment variables
Edge device · Router / network deviceknown edge product: Juniper Networks Junos OS Junos OS: EX Series: (high confidence)
A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series allows an unauthenticated, network-based attacker to control certain, important environment variables. Using a crafted request an attacker is able to modify certain PHP environment variables leading to partial loss of integrity, which may allow chaining to other vulnerabilities. This issue affects Juniper Networks Junos OS on EX Series: * All versions prior to 20.4R3-S9; * 21.1 versions 21.1R1 and later; * 21.2 versions prior to 21.2R3-S7; * 21.3 versions prior to 21.3R3-S5; * 21.4 versions prior to 21.4R3-S5; * 22.1 versions prior to 22.1R3-S4; * 22.2 versions prior to 22.2R3-S2; * 22.3 versions prior to 22.3R3-S1; * 22.4 versions prior to 22.4R2-S2, 22.4R3; * 23.2 versions prior to 23.2R1-S1, 23.2R2.
Timeline
Days relative to CVE publicationFirst public PoC 7.5 days after publication; added to CISA KEV 88 days after publication. First PoC: watchtowrlabs/juniper-rce_cve-2023-36844 (created 25 Aug 2023, found by us: backfilled).
PoC repositories
Found on GitHub.5 PoCs
PoCs 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| watchtowrlabs/juniper-rce_cve-2023-36844 | 25 Aug 2023 +7.5 d | 114 | PoC |
| Ap0dexMe0/CVE-2023-36844 | 20 Sep 2023 +33 d | 0 | PoC |
| Pari-Malam/CVE-2023-36844 | 20 Sep 2023 +33 d | 0 | PoC |
| ThatNotEasy/CVE-2023-36844 | 20 Sep 2023 +33 d | 0 | PoC |
| r3dcl1ff/CVE-2023-36844_Juniper_RCE | 24 Sep 2023 +38 d | 5 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Juniper Devices - Remote Code Execution | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 5 PoC reposGET /webauth_operation.php
POST /webauth_operation.php
- Body markers
rs=do_uploadrsargs[0]=[{"fileData":"data:text/html;base64,rsargs[0]=[{"fileData":"data:plain/text;base64,inapplication/x-www-form-urlencoded- Seen in
- 2 repos: r3dcl1ff/CVE-2023-36844_Juniper_RCE, watchtowrlabs/juniper-rce_cve-2023-36844
- Evidence
- r3dcl1ff/CVE-2023-36844_Juniper_RCE/exploit.py:32 r3dcl1ff/CVE-2023-36844_Juniper_RCE/exploit.py:45 watchtowrlabs/juniper-rce_cve-2023-36844/watchtowr-vs-junos_juniper_2023-08-25.py:54 watchtowrlabs/juniper-rce_cve-2023-36844/watchtowr-vs-junos_juniper_2023-08-25.py:71
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/webauth_operation\.php\?(?:.*&)?PHPRC=/var/tmp/
(?i)^/webauth_operation\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36844 Juniper Networks Junos OS exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/webauth_operation.php"; http.uri; content:"PHPRC=/var/tmp/"; reference:url,poc.griffinguard.io/cve/CVE-2023-36844; classtype:web-application-attack; sid:9667468; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36844 Juniper Networks Junos OS exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/webauth_operation.php"; http.request_body; content:"rs=do_upload"; http.request_body; content:"rsargs[0]=[{|22|fileData|22|:|22|data:text/html|3b|base64,"; http.request_body; content:"rsargs[0]=[{|22|fileData|22|:|22|data:plain/text|3b|base64,"; reference:url,poc.griffinguard.io/cve/CVE-2023-36844; classtype:web-application-attack; sid:9185988; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36844)
id: gg-pocmon-cve-2023-36844-9667468
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36844. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-36844
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/webauth_operation.php'
cs-uri-query|contains|all:
- 'PHPRC=/var/tmp/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2023.36844
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36844)
id: gg-pocmon-cve-2023-36844-9185988
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36844. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-36844
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/webauth_operation.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2023.36844