Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2015-7501: Apache Commons Collections Java Deserialization Remote Code Execution

Published Nov 9, 2017 · Updated 5 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3
EPSS85.6%100th percentile
CISA KEVNoNot listed
In the wildReported3 exploitation records in Mallory
Vendor
Red Hat
IdentifiersCVE-2015-7501CWE-502 · Deserialization of Untrusted Data

CVE-2015-7501 is an unsafe Java deserialization vulnerability involving Apache Commons Collections. Applications that deserialize attacker-controlled objects can execute arbitrary code through a specially constructed gadget chain involving classes such as InvokerTransformer, InstantiateFactory, and InstantiateTransformer. Vulnerable classes must be available on the application's classpath. Affected deployments include numerous Red Hat JBoss middleware products and other applications bundling the vulnerable library. In exposed JBoss configurations, JMXInvokerServlet can provide an unauthenticated entry point, allowing code execution as the operating-system user running the JBoss server. Library presence alone is insufficient for exploitation; an application must also expose an unsafe deserialization path.

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 permits arbitrary code and operating-system command execution with the privileges of the application performing deserialization. An attacker can compromise application-accessible data and resources, alter application behavior, deploy additional payloads, or disrupt services. The scope of compromise depends on the application account's permissions and access to other systems; exploitation does not inherently grant administrator or root privileges.

Mitigation

If you can’t patch tonight, do this now.

Prevent untrusted input from reaching Java deserialization code paths. Where deserialization is unavoidable, enforce strict class allow-lists using serialization filters supported by the runtime. Disable unnecessary serialized-object endpoints and restrict access to JBoss management interfaces using firewalls, VPNs, and network segmentation. As a temporary workaround, remove InvokerTransformer, InstantiateFactory, and InstantiateTransformer from every affected Commons Collections JAR, including application-bundled copies; test thoroughly because removal can break application functionality. Run affected applications with least privilege to limit post-exploitation impact.

Remediation

Patch, then assume compromise.

Upgrade Apache Commons Collections 3.x to 3.2.2 or later, or Commons Collections 4.x to 4.1 or later, or install the applicable vendor-supported backported fix. Update every application-bundled copy separately; patching the platform library does not remediate applications carrying their own vulnerable dependencies. Restart all applications using the updated library. Product-specific fixes include JBoss EAP 6.4.5, JBoss Fuse 6.2.1, JBoss Operations Network 3.3.5, and VMware Tanzu Greenplum 6.33.3; other affected releases require their corresponding vendor patches. Apply JBoss Operations Network server patches to every high-availability node, stopping each server before patching. Do not re-enable unsafe serialization through the org.apache.commons.collections.enableUnsafeSerialization system property. Replace unsupported products with supported, patched releases.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2015-7501This repository is a comprehensive Java deserialization exploitation lab, containing multiple proof-of-concept (PoC) exploits and a vulnerable HTTP server for testing. The code samples demonstrate how to craft malicious serialized Java objects (both binary and XML) that exploit gadget chains in Apache Commons Collections (<= 3.2.1) and Java's own classes to achieve arbitrary code execution upon deserialization. Key files include: - `VulnerableHTTPServer.java`: A test server that accepts serialized objects via HTTP POST, cookies, or XML, and deserializes them, simulating real-world vulnerable applications. - `ExampleCommonsCollections1.java`, `ExampleTransformersWithLazyMap.java`, `ReverseShellCommonsCollectionsHashMap.java`, and `reverseShellMultiplatformCommonsCollections.xml`: These files generate payloads that, when deserialized, execute arbitrary commands or establish a reverse shell by loading a remote class from an attacker-controlled server. - `DnsWithCommonsCollections.java`: Generates a payload that triggers an HTTP/DNS request to an attacker-controlled domain, useful for blind exploitation validation. - `ExploitGadgetExample1.java`, `ForgottenClass.java`, and `SomeInvocationHandler.java`: Demonstrate custom gadget chains and the use of Java reflection and proxies to hijack execution flow during deserialization. - `TestSerialize.java` and `TestDeserialize.java`: Simple serialization/deserialization demos. The repository targets Java applications that deserialize untrusted data, especially those with vulnerable versions of Apache Commons Collections in the classpath. It includes PoCs for CVE-2017-7504 and CVE-2017-12149 (affecting JBoss products), and demonstrates both local and remote (network) attack vectors. The payloads can be delivered via HTTP POST, cookies, or XML, and can result in arbitrary command execution or reverse shells. Several endpoints and file paths are fingerprintable, including remote JAR URLs and files created on the target system as a result of exploitation.ianxtianxt · Disclosed Feb 21, 2020 · java · xml · network · localPoC
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
Red HatData Gridapplication
Red HatJboss A-Mqapplication
Red HatJboss Bpm Suiteapplication
Red HatJboss Data Virtualizationapplication
Red HatJboss Enterprise Application Platformapplication
Red HatJboss Enterprise Brms Platformapplication
Red HatJboss Enterprise Web Serverapplication
Red HatJboss Fuseapplication
Red HatJboss Fuse Service Worksapplication
Red HatJboss Operations Networkapplication
Red HatJboss Portalapplication
Red HatJboss Soa Platformapplication
Red HatOpenshiftapplication
Red HatSubscription Asset Managerapplication
Red HatXpaasapplication
FAQ

Frequently asked questions

Is CVE-2015-7501 exploited in the wild?
Yes. As of Nov 22, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2015-7501?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2015-7501, the earliest disclosed Feb 21, 2020.
Is there a patch for CVE-2015-7501?
Upgrade Apache Commons Collections 3.x to 3.2.2 or later, or Commons Collections 4.x to 4.1 or later, or install the applicable vendor-supported backported fix. Update every application-bundled copy separately; patching the platform library does not remediate applications carrying their own vulnerable dependencies.
What products are affected by CVE-2015-7501?
Red Hat Data Grid, Red Hat Jboss A-Mq, Red Hat Jboss Bpm Suite, Red Hat Jboss Data Virtualization, Red Hat Jboss Enterprise Application Platform, and 10 more.
How severe is CVE-2015-7501?
CVE-2015-7501 has a CVSS v3 score of 9.8 (Critical) and an EPSS score of 85.6% (100th percentile) as of Nov 22, 2026.
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 evidence2Every report linking this CVE to a named adversary.
Associated malware7Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.