Juniper Networks Junos OS
Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to control an important environment variable
Edge device · Router / network deviceknown edge product: Juniper Networks Junos OS Junos OS: EX and (high confidence)
A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series and SRX Series allows an unauthenticated, network-based attacker to remotely execute code. Using a crafted request which sets the variable PHPRC an attacker is able to modify the PHP execution environment allowing the injection und execution of code. This issue affects Juniper Networks Junos OS on EX Series and SRX 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.3R2-S2, 22.3R3-S1; * 22.4 versions prior to 22.4R2-S1, 22.4R3; * 23.2 versions prior to 23.2R1-S1, 23.2R2.
Timeline
Days relative to CVE publicationFirst public PoC 30 days after publication; added to CISA KEV 88 days after publication. First PoC: vulncheck-oss/cve-2023-36845-scanner (created 16 Sep 2023, found by us: backfilled).
PoC repositories
Found on GitHub.17 PoCs · 7 pending · 1 not a PoC
PoCs 17
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| vulncheck-oss/cve-2023-36845-scanner | 16 Sep 2023 +30 d | 63 | Scanner |
| kljunowsky/CVE-2023-36845 | 26 Sep 2023 +40 d | 55 | PoC |
| halencarjunior/CVE-2023-36845 | 27 Sep 2023 +41 d | 1 | PoC |
| zaenhaxor/CVE-2023-36845 | 29 Sep 2023 +42 d | 4 | PoC |
| simrotion13/CVE-2023-36845 | 1 Oct 2023 +44 d | 1 | PoC via PoC Index |
| cyberh3als/CVE-2023-36845-POC | 2 Oct 2023 +45 d | 4 | PoC |
| P4x1s/ansible-cve-2023-36845 | 15 Nov 2023 +90 d | 0 | Scanner
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| Asbawy/Automation-for-Juniper-cve-2023-36845 | 29 Jan 2024 +165 d | 19 | PoC |
| jahithoque/Juniper-CVE-2023-36845-Mass-Hunting | 30 Jan 2024 +166 d | 1 | PoC |
| cyb3rzest/Juniper-Bug-Automation-CVE-2023-36845 | 1 Feb 2024 +167 d | 0 | PoC |
| CharonDefalt/Juniper-exploit-CVE-2023-36845 | 3 Feb 2024 +169 d | 0 | PoC |
| iveresk/CVE-2023-36845-6- | 13 Feb 2024 +180 d | 0 | PoC |
| ak1t4/CVE-2023-36845 | 13 Feb 2024 +180 d | 5 | PoC |
| 0xNehru/CVE-2023-36845-Juniper-Vulnerability | 14 Feb 2024 +181 d | 1 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| ifconfig-me/CVE-2023-36845 | 17 Feb 2024 +184 d | 0 | PoC |
| e11i0t4lders0n/CVE-2023-36845 | 18 Feb 2024 +185 d | 1 | PoC |
| kopfjager007/CVE-2023-36845 | 24 Nov 2025 +2.3 y | 0 | PoC |
Pending 7
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| cxb2523/ccfb-pointwise-20261109-010-cve-2023-36845-scanner | 9 Nov 2026 +3.2 y | 14 Nov 2026 | 0 | Pending |
| cxb2523/ccfb-pointwise-20261111-claude-uid831-867-017-cve-2023-36845-scanner | 11 Nov 2026 +3.2 y | 14 Nov 2026 | 0 | Pending |
| WhiteOwl-Pub/PoC-Vuln-Detector-juniper-cve-2023-36845 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| ditekshen/ansible-cve-2023-36845 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| functionofpwnosec/CVE-2023-36845 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| imhunterand/CVE-2023-36845 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| toanln-cov/CVE-2023-36845 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| r3dcl1ff/CVE-2023-36844_Juniper_RCE | 24 Sep 2023 +38 d | 5 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. 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 |
|---|---|---|---|
| Metasploit | Metasploit exploit: Junos OS PHPRC Environment Variable Manipulation RCE (exploit/freebsd/http/junos_phprc_auto_prepend_file) | unknown | 14 Nov 2026 |
| nuclei template | nuclei template: Juniper J-Web - Remote Code Execution | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 17 PoC reposPOST /
- Query
PHPRC=/dev/fd/0- Body markers
name="auto_prepend_file"name="PHPRC"$allow_url_include=1\nauto_prepend_file="data://text/plain;base64,PD8KICAgcGhwaW5mbygpOwo/Pg=="$allow_url_include=1\nauto_prepend_file="data://text/plain;base64,PD9waHAgc2hlbGxfZXhlYygnd2hvYW1pJyk7ID8 Cg=="auto_prepend_file="/etc/passwd"auto_prepend_file="/etc/passwd")inmultipart/form-data- Seen in
- 6 repos: 0xNehru/CVE-2023-36845-Juniper-Vulnerability, CharonDefalt/Juniper-exploit-CVE-2023-36845, cyberh3als/CVE-2023-36845-POC, kljunowsky/CVE-2023-36845, simrotion13/CVE-2023-36845, zaenhaxor/CVE-2023-36845
- Evidence
- 0xNehru/CVE-2023-36845-Juniper-Vulnerability/CVE-2023–36845.py:12 CharonDefalt/Juniper-exploit-CVE-2023-36845/README.md:35 CharonDefalt/Juniper-exploit-CVE-2023-36845/README.md:41 cyberh3als/CVE-2023-36845-POC/CVE-2023-36845-POC.py:12 kljunowsky/CVE-2023-36845/README.md:35 kljunowsky/CVE-2023-36845/README.md:41
POST /webauth_operation.php
- Body markers
rs=do_uploadrsargs[]=[{"fileName": "shell.php", "fileData": ",PD9waHAgaWYoaXNzZXQoJF9SRVFVRVNUW2NtZF0pKXsgZWNobyAiPHByZT4iOyAkY21kID0gKCRfUkVRVUVTVFtjbWRdKTsgc3lzdGVtKCRjbWQpOyBlY2hvICI8L3ByZT4iOyBkaWU7IH0/Pgo=inapplication/x-www-form-urlencoded- Seen in
- 2 repos: CharonDefalt/Juniper-exploit-CVE-2023-36845, kljunowsky/CVE-2023-36845
- Evidence
- CharonDefalt/Juniper-exploit-CVE-2023-36845/README.md:50 kljunowsky/CVE-2023-36845/README.md:50
GET /
- Query
PHPRC=/dev/fd/0- Seen in
- 1 repo: halencarjunior/CVE-2023-36845
- Evidence
- halencarjunior/CVE-2023-36845/juniperscan.py:86 halencarjunior/CVE-2023-36845/juniperscan.py:126
POST /about.php
- Query
PHPRC=/dev/fd/0- Body markers
auto_prepend_file="/etc/passwd"inapplication/x-www-form-urlencoded- Seen in
- 1 repo: iveresk/CVE-2023-36845-6-
- Evidence
- iveresk/CVE-2023-36845-6-/cve-2023-36845-6.sh:28 iveresk/CVE-2023-36845-6-/cve-2023-36845-6.sh:32
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?PHPRC=/dev/fd/0
(?i)^/webauth_operation\.php(?:[?#].*)?$
(?i)^/\?(?:.*&)?PHPRC=/dev/fd/0
(?i)^/about\.php\?(?:.*&)?PHPRC=/dev/fd/0
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36845 Juniper Networks Junos OS exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"PHPRC=/dev/fd/0"; http.request_body; content:"name=|22|auto_prepend_file|22|"; http.request_body; content:"name=|22|PHPRC|22|"; http.request_body; content:"$allow_url_include=1|5c|nauto_prepend_file=|22|data://text/plain|3b|base64,PD8KICAgcGhwaW5mbygpOwo/Pg==|22|"; http.request_body; content:"$allow_url_include=1|5c|nauto_prepend_file=|22|data://text/plain|3b|base64,PD9waHAgc2hlbGxfZXhlYygnd2hvYW1pJyk7ID8 Cg==|22|"; http.request_body; content:"auto_prepend_file=|22|/etc/passwd|22|"; http.request_body; content:"auto_prepend_file=|22|/etc/passwd|22|)"; reference:url,poc.griffinguard.io/cve/CVE-2023-36845; classtype:web-application-attack; sid:9267209; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36845 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[]=[{|22|fileName|22|: |22|shell.php|22|, |22|fileData|22|: |22|,PD9waHAgaWYoaXNzZXQoJF9SRVFVRVNUW2NtZF0pKXsgZWNobyAiPHByZT4iOyAkY21kID0gKCRfUkVRVUVTVFtjbWRdKTsgc3lzdGVtKCRjbWQpOyBlY2hvICI8L3ByZT4iOyBkaWU7IH0/Pgo="; reference:url,poc.griffinguard.io/cve/CVE-2023-36845; classtype:web-application-attack; sid:9292775; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36845 Juniper Networks Junos OS exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"PHPRC=/dev/fd/0"; reference:url,poc.griffinguard.io/cve/CVE-2023-36845; classtype:web-application-attack; sid:9288079; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36845 Juniper Networks Junos OS exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/about.php"; http.uri; content:"PHPRC=/dev/fd/0"; http.request_body; content:"auto_prepend_file=|22|/etc/passwd|22|"; reference:url,poc.griffinguard.io/cve/CVE-2023-36845; classtype:web-application-attack; sid:9727220; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36845)
id: gg-pocmon-cve-2023-36845-9267209
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36845. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-36845
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-query|contains|all:
- 'PHPRC=/dev/fd/0'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.36845
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36845)
id: gg-pocmon-cve-2023-36845-9292775
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36845. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-36845
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/webauth_operation.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.36845
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36845)
id: gg-pocmon-cve-2023-36845-9288079
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36845. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-36845
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- 'PHPRC=/dev/fd/0'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.36845
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36845)
id: gg-pocmon-cve-2023-36845-9727220
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36845. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-36845
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/about.php'
cs-uri-query|contains|all:
- 'PHPRC=/dev/fd/0'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.36845