Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2016-4437: Apache Shiro RememberMe Deserialization

Published Jun 7, 2016 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS93.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendors
Apache Software FoundationRed Hat
IdentifiersCVE-2016-4437CWE-502

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
shiro_rememberme_v124_deserialize.rbThis repository contains a single Metasploit module targeting Apache Shiro v1.2.4's deserialization vulnerability (CVE-2016-4437). The exploit leverages a weakness in the rememberMe cookie handling, where a known or guessable encryption key allows attackers to craft a malicious Java serialized payload. This payload is encrypted and placed in the rememberMe cookie, which is then sent via an HTTP request to the target application. If the target is vulnerable, the payload is deserialized and executed, resulting in remote code execution. The module supports both Unix and Windows command payloads, including reverse shells. The main entry point is the Ruby file implementing the Metasploit exploit logic. The only fingerprintable endpoints are the HTTP base path (TARGETURI) and the rememberMe cookie. The exploit is weaponized, as it is part of the Metasploit framework and supports customizable payloads.Disclosed Jun 7, 2016 · Framework: metasploit · ruby · networkWeaponizedAwesome_shiroThis repository is a comprehensive exploitation toolkit for Apache Shiro <= 1.2.4 (CVE-2016-4437), focusing on the 'rememberMe' deserialization vulnerability. It provides multiple Python scripts for different attack stages: key/module brute-forcing (shiro_crack.py, shiro_piliang_crack.py), remote code execution (shiro-rce/shiro_rce.py, shiro_shuyu/shiro_rce.py), reverse shell access (shiro_getshell/shiro_getshell.py), and detection/fuzzing (fuzz-shiro/check_shiro.py, thread_check.py). The core technique is to generate malicious serialized Java objects (using ysoserial.jar) encrypted with various known Shiro keys, and deliver them via the 'rememberMe' cookie in HTTP requests. The toolkit supports both single-target and batch exploitation, and includes modules for different gadget chains (CommonsBeanutils1, CommonsCollections1-6, JRMPClient). The repository is operational and can be used to achieve full remote code execution and shell access on vulnerable Shiro deployments.bkfish · Disclosed May 27, 2020 · python · networkOperationalshisoserialThis repository provides a Python-based exploit tool ('shisoserial.py') targeting Apache Shiro deserialization vulnerabilities, specifically CVE-2016-4437. The tool can: - Check if a target web application is using the Shiro framework by probing for the 'rememberMe' cookie behavior. - Brute-force the Shiro encryption key using a built-in dictionary ('lib/shiro_keys.txt') or a user-supplied key. - Generate and deliver ysoserial-based Java deserialization payloads (using either CBC or GCM encryption) to exploit vulnerable Shiro instances, enabling remote command execution (default command: 'whoami', customizable by the user). - Support batch targeting via a file of URLs, proxy configuration, POST/GET methods, and multithreading for mass exploitation. The main entry point is 'shisoserial.py', which implements all exploit logic and command-line parsing. The repository also includes documentation in both English and Chinese, a requirements file for dependencies, and a list of common Shiro keys. The attack vector is network-based, targeting web applications over HTTP/HTTPS. The tool is operational and provides real exploitation capabilities, not just detection.4nth0ny1130 · Disclosed Dec 23, 2021 · python · networkOperationalvulhub-shiro-cve-2016-4437This is primarily an intentionally vulnerable lab, with a manual exploitation walkthrough rather than an automated exploit client. It reproduces CVE-2016-4437 using Apache Shiro 1.2.4's default CookieRememberMeManager, which retains the known AES key and deserializes attacker-controlled rememberMe cookie contents. The application includes Commons BeanUtils 1.9.2, supporting the documented CommonsBeanutils1 gadget. The walkthrough uses an external ysoserial JAR, a Java encryption snippet, and a forged HTTP cookie to execute the basic command touch /tmp/success. Maturity reflects this documented payload, not a packaged attack tool; execution was not independently verified. The 41 files include four Java application classes, three HTML templates, five shell checks, seven Terraform modules, a Ruby Vagrantfile, and a Dockerfile: 21 code/template files under this counting convention, excluding YAML/JSON/XML configuration. base/shiro/1.2.4 contains the Maven/Spring Boot application and image build recipe. ShiroConfig enables vulnerable default rememberMe handling; MainRealm hardcodes the demonstration credentials admin/vulhub; UserController supplies login, landing, and error routes. app contains the upstream Compose deployment and English/Chinese reproduction guides. isoloom.yml defines the lab, while .isoloom contains generated Docker, Kubernetes, VM, Proxmox, and six cloud-provider deployment outputs. GitHub workflows validate generated infrastructure, run availability/isolation checks, and register approved labs. checks/rememberme.sh only confirms rejection of an invalid cookie through rememberMe=deleteMe; it does not establish that the default key works or demonstrate deserialization RCE. Generated Docker deployments remove the application's default route, and Kubernetes manifests restrict egress when enforced by a compatible network plugin. The simpler upstream app/docker-compose.yml lacks these isolation measures. Kubernetes also publishes port 8080 through a LoadBalancer. No malicious callback, persistence, or exfiltration destination is present. Provisioning cleanup commands are contextual deployment/CI operations, not evidence of a fake exploit. The runtime image is pinned by tag rather than digest. The supplied data identifies upstream Vulhub commit 8fd63916f7a8711e2e01dda0d27237e4d6175d38, but does not provide the analyzed repository's original URL, analyzed git reference, or archive size; corresponding metadata is left empty or zero.CyberCTF · Disclosed Oct 8, 2026 · java · sh · webOperational
Exposure surface

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.

VendorProductType
Apache Software FoundationAuroraapplication
Apache Software FoundationShiroapplication
Red HatJboss Fuseapplication
Red HatJboss Middleware Text-Only Advisoriesapplication
FAQ

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.
Activity feed

Recent activity

12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+7 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence3Every report linking this CVE to a named adversary.
Associated malware10Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.