Apache Shiro RememberMe Deserialization
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
4 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.