Apache Shiro
Apache Shiro Code Execution Vulnerability
Apache Shiro before 1.2.5, when a cipher key has not been configured for the "remember me" feature, allows remote attackers to execute arbitrary code or bypass intended access restrictions via an unspecified request parameter.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 1.2.5
Fixed in 1.2.5
from GitHub Security Advisory GHSA-p836-389h-j692
Mitigation
Upgrade org.apache.shiro:shiro-core to 1.2.5 or later.
Timeline
Days relative to CVE publicationFirst public PoC 3.9 years after publication; added to CISA KEV 5.4 years after publication. First PoC: Metasploit exploit: Apache Shiro v1.2.4 Cookie RememberME Deserial RCE (exploit/multi/http/shiro_rememberme_v124_deserialize) (Metasploit, 27 Apr 2020).
PoC repositories
Found on GitHub.5 PoCs · 3 pending · 2 informational · 4 suspicious or fake
PoCs 5
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| pizza-power/CVE-2016-4437 | 22 Dec 2023 +7.5 y | backfilled | 2 | PoC |
| xk-mt/CVE-2016-4437 | 15 Jan 2024 +7.6 y | backfilled | 0 | PoC |
| 35789-gh/cve-2016-4437 | 19 Feb 2026 +9.7 y | backfilled | 1 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| CyberCTF/vulhub-shiro-cve-2016-4437 | 8 Oct 2026 +10.3 y | backfilled | 0 | PoC |
| nizexu04/work1-api | 21 Oct 2026 +10.4 y | 14 Nov 2026 | 0 | PoC |
Pending 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| bkfish/Awesome_shiro | 27 May 2020 +4.0 y | 55 | Pending · repository exceeds size limit |
| 4nth0ny1130/shisoserial | 23 Dec 2021 +5.5 y | 24 | Pending · repository exceeds size limit |
| KBlackMeow/Matrix | 9 Mar 2026 +9.8 y | 2 | Pending · repository exceeds size limit via PoC Index |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| m3terpreter/CVE-2016-4437 | 22 Jun 2021 +5.0 y | 0 | Informational · write-up |
| Pensa31/Hacker | 7 Jun 2025 +9.0 y | 0 | Informational · write-up |
Suspicious or fake 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| jas502n/Shiro_Xray | 26 Jul 2020 +4.1 y | 58 | Fake |
| N0tOd2y/PenForge | 2 Sep 2026 +10.2 y | 1 | Fake |
| xunjinghan/bounty-forge | 13 Oct 2026 +10.3 y | 4 | Fake |
| xunwmw/vuln-xiuxian | 13 Oct 2026 +10.3 y | 4 | Fake |
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 |
|---|---|---|---|
| Exploit-DB | Apache Shiro 1.2.4 - Cookie RememberME Deserial RCE (Metasploit) | 1 May 2020 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Shiro v1.2.4 Cookie RememberME Deserial RCE (exploit/multi/http/shiro_rememberme_v124_deserialize) | 27 Apr 2020 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Shiro 1.2.4 Cookie RememberME - Deserial Remote Code Execution Vulnerability | 11 May 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 6 PoC reposGET /
- Key headers
Cookie: rememberMe={var}Cookie: rememberMe=isoloom- Ports
- 5000, 8080
- Seen in
- 2 repos: CyberCTF/vulhub-shiro-cve-2016-4437, nizexu04/work1-api
- Evidence
- CyberCTF/vulhub-shiro-cve-2016-4437/app/README.md:58 CyberCTF/vulhub-shiro-cve-2016-4437/app/README.zh-cn.md:56 CyberCTF/vulhub-shiro-cve-2016-4437/checks/rememberme.sh:5 nizexu04/work1-api/README.md:200 nizexu04/work1-api/cve-2016-4437/exploit.sh:41 nizexu04/work1-api/cve-2016-4437/reproduction.md:35
GET /api/data
- Key headers
Authorization: Bearer {var}- Ports
- 5000, 8080
- Seen in
- 1 repo: nizexu04/work1-api
- Evidence
- nizexu04/work1-api/README.md:35 nizexu04/work1-api/README.md:39 nizexu04/work1-api/tests/test_api.py:85 nizexu04/work1-api/tests/test_api.py:89 nizexu04/work1-api/tests/test_api.py:97
POST /api/posts
- Key headers
Authorization: Bearer {var}- Body markers
"title""content":"<img src=x onerror=alert(2)>""title":"x""content":"y""title":"{var}alert(1)</script>""content":"<img src=x onerror=alert(1)>""title":"""content":""inapplication/json- Ports
- 5000, 8080
- Seen in
- 1 repo: nizexu04/work1-api
- Evidence
- nizexu04/work1-api/README.md:42 nizexu04/work1-api/tests/test_api.py:109 nizexu04/work1-api/tests/test_api.py:115 nizexu04/work1-api/tests/test_api.py:135
POST /auth/login
- Body markers
"login":"alice""password":"Alice123!x""login""password""login":"' OR '1'='1' --""password":"anything"inapplication/json- Ports
- 5000, 8080
- Seen in
- 1 repo: nizexu04/work1-api
- Evidence
- nizexu04/work1-api/README.md:29 nizexu04/work1-api/tests/test_api.py:42 nizexu04/work1-api/tests/test_api.py:75
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
(?i)^/api/data(?:[?#].*)?$
(?i)^/api/posts(?:[?#].*)?$
(?i)^/auth/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5000,8080] (msg:"GG PoC-Monitor CVE-2016-4437 Apache Shiro exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header; content:"Cookie: rememberMe="; nocase; http.header; content:"Cookie: rememberMe=isoloom"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2016-4437; classtype:web-application-attack; sid:9351817; rev:1;)
alert http any any -> $HOME_NET [5000,8080] (msg:"GG PoC-Monitor CVE-2016-4437 Apache Shiro exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/data"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2016-4437; classtype:web-application-attack; sid:9556876; rev:1;)
alert http any any -> $HOME_NET [5000,8080] (msg:"GG PoC-Monitor CVE-2016-4437 Apache Shiro exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/posts"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|title|22|"; http.request_body; content:"|22|content|22|:|22|<img src=x onerror=alert(2)>|22|"; http.request_body; content:"|22|title|22|:|22|x|22|"; http.request_body; content:"|22|content|22|:|22|y|22|"; http.request_body; content:"|22|title|22|:|22|"; http.request_body; content:"|22|content|22|:|22|<img src=x onerror=alert(1)>|22|"; http.request_body; content:"|22|title|22|:|22||22|"; http.request_body; content:"|22|content|22|:|22||22|"; reference:url,poc.griffinguard.io/cve/CVE-2016-4437; classtype:web-application-attack; sid:9641045; rev:1;)
alert http any any -> $HOME_NET [5000,8080] (msg:"GG PoC-Monitor CVE-2016-4437 Apache Shiro exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/auth/login"; http.request_body; content:"|22|login|22|:|22|alice|22|"; http.request_body; content:"|22|password|22|:|22|Alice123!x|22|"; http.request_body; content:"|22|login|22|"; http.request_body; content:"|22|password|22|"; http.request_body; content:"|22|login|22|:|22|' OR '1'='1' --|22|"; http.request_body; content:"|22|password|22|:|22|anything|22|"; reference:url,poc.griffinguard.io/cve/CVE-2016-4437; classtype:web-application-attack; sid:9746363; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Shiro exploit attempt (CVE-2016-4437)
id: gg-pocmon-cve-2016-4437-9351817
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-4437. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-4437
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2016.4437
title: Apache Shiro exploit attempt (CVE-2016-4437)
id: gg-pocmon-cve-2016-4437-9556876
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-4437. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-4437
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/data'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2016.4437
title: Apache Shiro exploit attempt (CVE-2016-4437)
id: gg-pocmon-cve-2016-4437-9641045
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-4437. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-4437
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/posts'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2016.4437
title: Apache Shiro exploit attempt (CVE-2016-4437)
id: gg-pocmon-cve-2016-4437-9746363
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-4437. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-4437
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/auth/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2016.4437