CVE-2016-4437: Apache Shiro RememberMe Deserialization
- Vendors
- Apache Software FoundationRed Hat
CVE-2016-4437 is an unsafe Java deserialization vulnerability in Apache Shiro versions before 1.2.5, commonly called Shiro-550. When the rememberMe feature is enabled without an application-configured cipher key, CookieRememberMeManager uses a known default AES key to decrypt attacker-controlled rememberMe cookie data before deserializing it. An unauthenticated remote attacker can construct an encrypted serialized object stream containing a suitable gadget chain and submit it in the rememberMe request parameter/cookie. Depending on available classes and gadget chains, this can result in arbitrary code execution; the flaw may also be used to bypass intended access restrictions.
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.
Successful exploitation can provide unauthenticated remote code execution in the security context of the affected Java application. This can enable complete compromise of application data and functions, deployment of server-side malware or web shells, credential theft, lateral movement, and disruption of the application. Where a viable deserialization gadget chain is unavailable, exploitation may still permit unauthorized access or authentication/authorization restriction bypass.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, disable the rememberMe feature and reject or clear rememberMe cookies. Restrict access to exposed Shiro-backed applications through network controls, reverse proxies, or VPNs where feasible. Monitor for malformed, unusually large, or repeated rememberMe cookie values and anomalous application deserialization behavior. Deploy compensating controls capable of blocking known serialized-object payload patterns, but do not treat signature-based detection as a substitute for upgrading and replacing the unsafe default configuration.
Remediation
Patch, then assume compromise.
Upgrade Apache Shiro to version 1.2.5 or later. Configure a unique, high-entropy rememberMe cipher key rather than relying on any default key, and ensure the key is securely managed and consistently deployed across all application nodes. After remediation or key rotation, invalidate existing rememberMe cookies and review application dependencies for deserialization gadget chains that could make exploitation practical.
Exploits
4 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
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.
References
Frequently asked questions
- Is CVE-2016-4437 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 3, 2021.
- Is there a public exploit for CVE-2016-4437?
- Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2016-4437, the earliest disclosed Jun 7, 2016.
- Is there a patch for CVE-2016-4437?
- Upgrade Apache Shiro to version 1.2.5 or later. Configure a unique, high-entropy rememberMe cipher key rather than relying on any default key, and ensure the key is securely managed and consistently deployed across all application nodes.
- What products are affected by CVE-2016-4437?
- Apache Software Foundation Shiro, Apache Software Foundation Aurora, Red Hat Jboss Fuse, and Red Hat Jboss Middleware Text-Only Advisories.
- How severe is CVE-2016-4437?
- CVE-2016-4437 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 93.0% (100th percentile) as of Oct 16, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.