Vulnerability record · CVE-2016-4437 · published 7 June 2016
CVE-2016-4437: Apache Shiro hardcoded remember-me cipher key enables code execution
Apache · Aurora
Apache Shiro before 1.2.5 uses a default cipher key for the "remember me" feature when no key is configured, allowing attackers to forge or decrypt remember-me cookies. Because the cookie is deserialized, a crafted value can lead to remote code execution or authentication bypass. The flaw is remotely reachable without credentials and is listed in CISA KEV, making it a high-value target for defenders.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8, active exploitation in CISA KEV, near-maximum EPSS, and public exploit code make this an urgent patch target.
What it is
Apache Shiro before 1.2.5 uses a default cipher key for the "remember me" feature when no key is configured, allowing attackers to forge or decrypt remember-me cookies. Because the cookie is deserialized, a crafted value can lead to remote code execution or authentication bypass. The flaw is remotely reachable without credentials and is listed in CISA KEV, making it a high-value target for defenders.
Impact
An unauthenticated attacker can execute arbitrary code on the server or bypass access restrictions, potentially gaining full control of the application and underlying host.
Attack surface
Reached over the network via HTTP requests carrying a crafted remember-me cookie or request parameter; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).
Exploitation
CISA KEV lists it as actively exploited (added 2021-11-03), EPSS 30-day probability is 0.93039 (99.8th percentile), and references include an Exploit-tagged Packet Storm entry, indicating public exploit code exists.
What to do
- Upgrade Apache Shiro to 1.2.5 or later, or apply the vendor patch for your distribution (e.g., Red Hat RHSA-2016-2035/RHSA-2016-2036).
- Configure a unique, strong cipher key for the remember-me feature instead of relying on the default.
- Disable the remember-me feature if it is not required by the application.
- Rotate any existing remember-me cookies and invalidate sessions after patching.
- Restrict network exposure of Shiro-based applications and monitor for anomalous cookie values.
Detection
- Inspect HTTP requests for remember-me cookies containing base64-encoded serialized Java objects or unusually long values.
- Monitor application and server logs for deserialization errors or unexpected class loading tied to cookie processing.
- Use network detection to flag known Shiro exploit payloads or signatures targeting the remember-me parameter.
- Alert on outbound connections or process creation from the application server that correlate with cookie-handling requests.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2016-4437 to the Known Exploited Vulnerabilities catalog on 3 November 2021 as "Apache Shiro Code Execution Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 3 May 2022.
Affected products
4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2016-4437 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2016-4437), CISA KEV, FIRST EPSS (scores of 2026-09-25). This page is refreshed as NVD updates the record.