mchange-commons-java
CVE-2026-27727
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app using c3p0/mchange-commons-java < 0.4.0
-
DeliverySupply crafted JNDI Reference or serialized object
-
ExploitApplication dereferences via mchange JNDI code
-
ExecutionJVM fetches remote factoryClassLocation codebase
-
PersistMalicious ObjectFactory instantiated
-
ImpactArbitrary code executed in JVM
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Requires an application running mchange-commons-java before 0.4.0 (commonly via the c3p0 connection pool) that can be induced to read a maliciously crafted javax.naming.Reference or to deserialize an attacker-influenced object, and that reaches the library's legacy JNDI dereferencing path which honored remote factoryClassLocation values by default before 0.4.0. The critical condition is that this code path is independent of the JDK, so the standard com.sun.jndi.ldap.object.trustURLCodebase=false mitigation does NOT block it. Limiting factors per the CVSS 4.0 vector: PR:H (the attacker needs elevated access or control over the data/configuration the app feeds into the lookup) and AT:P (the application must actually be provoked into resolving the crafted reference), plus the requirement that a pre-0.4.0 version is on the CLASSPATH; outbound network access from the victim JVM to the attacker codebase is also needed for the remote class download. |
| Impact | Signals are mixed and should be weighed together rather than taken at face value. The CVSS 4.0 base score is high (8.9, AV:N/AC:L/AT:P/PR:H/UI:N with full confidentiality, integrity and availability impact on both the vulnerable and subsequent systems), reflecting that successful exploitation yields code execution. However, two metrics temper raw network-RCE alarm: AT:P (a specific attack requirement - the application must be coaxed into reading attacker-controlled reference/serialized data) and PR:H (elevated privileges or control over configuration/data flow are needed). EPSS is low at 0.10% (27th percentile) and the CVE is not in CISA KEV, indicating no evidence of widespread automated exploitation. That said, publicly available exploit/research exists (Mogwai Labs), so the technique is well understood and weaponizable against vulnerable deployments. Net assessment: a real and patch-worthy issue for any Java stack embedding c3p0 or mchange-commons-java that processes externally influenced JNDI/serialized data, but it is gated by exploitation prerequisites rather than being a trivial drive-by, so prioritize it on exposed or data-processing services over generic internal usage. |
| Exploit ScenarioDerived | An attacker supplies data that an application using vulnerable c3p0/mchange-commons-java resolves as a JNDI javax.naming.Reference (or deserializes), with the reference pointing at an attacker-hosted codebase via factoryClassLocation. When the library dereferences it, it downloads and instantiates the attacker's ObjectFactory class, executing arbitrary code in the JVM. Public exploit research (Mogwai Labs' c3p0 write-up) demonstrates the technique, and JDK trustURLCodebase=false hardening does not prevent it because mchange ships its own implementation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Remote code execution in mchange-commons-java prior to 0.4.0 allows an attacker to download and run arbitrary Java code by forcing an application to dereference a malicious javax.naming.Reference or serialized object that specifies a remote factoryClassLocation. The library ships its own legacy JNDI dereferencing implementation, so applications using it (notably the c3p0 connection pool) remain exploitable even on JDKs hardened with com.sun.jndi.ldap.object.trustURLCodebase=false. Publicly available exploit code exists (Mogwai Labs c3p0 research), though EPSS is low (0.10%, 27th percentile) and the issue is not listed in CISA KEV.
Earlier versions of this analysis (4)
Remote code execution in mchange-commons-java before 0.4.0 arises from its independent reimplementation of legacy JNDI dereferencing, which honors remote factoryClassLocation values and will download and invoke attacker-supplied code. Because this implementation is separate from the JDK's, the well-known com.sun.jndi.ldap.object.trustURLCodebase=false hardening does NOT protect it, so downstream consumers like the c3p0 connection pool stay exploitable when made to resolve a crafted javax.naming.Reference or deserialize a hostile object. Publicly available exploit code exists (MOGWAI LABS c3p0 research), though EPSS is low at 0.10% and the CVE is not on CISA KEV.
Remote code execution in mchange-commons-java before 0.4.0 allows attackers to download and run arbitrary Java code by coercing an application to dereference a malicious javax.naming.Reference or serialized object whose factoryClassLocation points to a remote codebase. Because mchange-commons-java ships its own JNDI dereferencing implementation rather than relying on the JDK's, applications using dependent libraries such as c3p0 remain exploitable even on JVMs hardened via com.sun.jndi.ldap.object.trustURLCodebase=false. Publicly available exploit code exists (Mogwai Labs' c3p0 research); EPSS is low at 0.10% (27th percentile) and the issue is not listed in CISA KEV, so no confirmed active exploitation has been observed.
Remote code execution in mchange-commons-java before 0.4.0 allows attackers to download and run arbitrary Java code when an application is provoked into resolving a malicious javax.naming.Reference or serialized object containing a remote factoryClassLocation. Because the library ships its own JNDI dereferencing implementation independent of the JDK, downstream consumers such as the c3p0 connection pool remain exploitable even after the JDK was hardened via com.sun.jndi.ldap.object.trustURLCodebase. Publicly available exploit code exists (MogwaiLabs c3p0 research), though EPSS exploitation probability is low at 0.10% (27th percentile) and the issue is not in CISA KEV.
JNDI injection in mchange-commons-java utility library.
RemediationAI
Vendor-released patch: upgrade mchange-commons-java to version 0.4.0 or later, which gates the JNDI dereferencing functionality behind configuration parameters that default to restrictive values; bump any transitive dependency (for example via c3p0) so that versions prior to 0.4.0 are not present on application CLASSPATHs. Apply the corresponding distribution updates where relevant: Red Hat RHSA-2026:3890 / RHSA-2026:4285 (and related errata) and SUSE SUSE-SU-2026:0855 / SUSE-SU-2026:1035, per https://access.redhat.com/errata/RHSA-2026:3890 and https://www.suse.com/support/update/SUSE-SU-2026:0855/. The upstream advisory GHSA-m2cm-222f-qw44 states no known workarounds are available, so upgrading is the only reliable fix; as compensating controls until patched, ensure no attacker-controllable input reaches JNDI lookups or Java deserialization paths (do not let untrusted parties influence c3p0 JNDI/JDBC configuration or supply serialized objects), and apply network egress filtering to block outbound LDAP/RMI/HTTP from application servers to untrusted hosts so a remote factoryClassLocation cannot be fetched - noting that egress restrictions can break legitimate outbound integrations and must be scoped carefully.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability lives in mchange-commons-java, a general-purpose Java utility library widely pulled in transitively by c3p0 (a JDBC connection pool). It reproduces the classic JNDI injection pattern (CWE-74, Injection) in which a Naming Reference can carry a remote codebase URL via factoryClassLocation; when the reference is resolved, the named ObjectFactory class is fetched from that URL and instantiated, leading to code execution. Oracle mitigated this in the JDK by gating remote codebase loading behind the com.sun.jndi.ldap.object.trustURLCodebase System property (default false), but because mchange-commons-java carries an independent dereferencing implementation, that JDK hardening does not apply. The affected component is cpe:2.3:a:mchange:mchange_commons_java for all versions before 0.4.0, which now gates this functionality behind configuration parameters that default to restrictive values.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Network-reachable but requires provoking the app to resolve attacker-controlled references plus elevated data/config control (AC:H, PR:H); remote class loading yields full RCE with scope change (S:C, C/I/A:H).
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
9DescriptionCVE.org
mchange-commons-java, a library that provides Java utilities, includes code that mirrors early implementations of JNDI functionality, including support for remote factoryClassLocation values, by which code can be downloaded and invoked within a running application. If an attacker can provoke an application to read a maliciously crafted jaxax.naming.Reference or serialized object, they can provoke the download and execution of malicious code. Implementations of this functionality within the JDK were disabled by default behind a System property that defaults to false, com.sun.jndi.ldap.object.trustURLCodebase. However, since mchange-commons-java includes an independent implementation of JNDI derefencing, libraries (such as c3p0) that resolve references via that implementation could be provoked to download and execute malicious code even after the JDK was hardened. Mirroring the JDK patch, mchange-commons-java's JNDI functionality is gated by configuration parameters that default to restrictive values starting in version 0.4.0. No known workarounds are available. Versions prior to 0.4.0 should be avoided on application CLASSPATHs.
Blast Radius
ecosystem impact- 105 maven packages depend on com.mchange:mchange-commons-java (8 direct, 97 indirect)
Ecosystem-wide dependent count for version 0.4.0.
Executive ViewAI
mchange-commons-java versions below 0.4.0 contain a critical remote code execution vulnerability affecting organizations using the c3p0 connection pooling library, which is widely deployed for database connection management. An attacker exploiting this flaw could execute arbitrary code within affected applications, potentially compromising database access and enabling lateral movement through the network. While current threat intelligence shows low active exploitation (0.1% EPSS), the availability of public exploit code and the library's pervasive use in enterprise environments necessitates immediate remediation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Same technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| Container suse/manager/4.3/proxy-httpd:4.3.17.9.76.1 | Affected |
| Container suse/manager/5.0/x86_64/server-attestation:latest Container suse/manager/5.0/x86_64/server:latest Image server-attestation-image Image server-image | Affected |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Tumbleweed | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE Manager Server Module 4.3 | Fixed |
| SUSE Manager Server Module 4.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| SUSE Manager Proxy 4.3 LTS | Fixed |
| SUSE Manager Retail Branch Server 4.3 LTS | Fixed |
| SUSE Manager Server 4.3 LTS | Fixed |
| SUSE Manager Server 4.3 LTS | Fixed |
| suse/manager/5.0/x86_64/server suse/manager/5.0/x86_64/server-attestation suse/multi-linux-manager/5.1/x86_64/server suse/multi-linux-manager/5.1/x86_64/server-attestation suse/multi-linux-manager/5.2/x86_64/server suse/multi-linux-manager/5.2/x86_64/server-attestation | Fixed |
| suse/manager/5.0/x86_64/server suse/manager/5.0/x86_64/server-attestation suse/multi-linux-manager/5.2/x86_64/server suse/multi-linux-manager/5.2/x86_64/server-attestation | Fixed |
| suse/multi-linux-manager/5.1/x86_64/server suse/multi-linux-manager/5.1/x86_64/server-attestation | Fixed |
| suse/manager/4.3/proxy-httpd | Fixed |
GHSA-m2cm-222f-qw44
NVD
CVE.org
EPSS
Exploit-DB