Skip to main content

mchange-commons-java CVE-2026-27727

HIGH
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-02-25 security-advisories@github.com GHSA-m2cm-222f-qw44
8.9
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app using c3p0/mchange-commons-java < 0.4.0
  2. Delivery
    Supply crafted JNDI Reference or serialized object
  3. Exploit
    Application dereferences via mchange JNDI code
  4. Execution
    JVM fetches remote factoryClassLocation codebase
  5. Persist
    Malicious ObjectFactory instantiated
  6. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – 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)
v4 Jun 30, 2026 - 05:21 cvss changed CVSS 8.9

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.

v3 Jun 30, 2026 - 05:20 cvss changed CVSS 8.9

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.

v2 Jun 30, 2026 - 05:18 cvss changed CVSS 8.9

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.

v1 Mar 12, 2026 - 21:55 CVSS 9.8

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

maven com.mchange:mchange-commons-java fix: 0.4.0

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

Vendor (github) PRIMARY 8.9 HIGH
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
vuln.today AI 8.0 HIGH

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).

3.1 AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
SUSE 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 8.3 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

9
Analysis Updated
Jun 30, 2026 - 05:22 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:21 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:20 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:18 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:23 NVD
CRITICAL HIGH
CVSS changed
Jun 30, 2026 - 03:23 NVD
9.8 (CRITICAL) 8.9 (HIGH)
PoC Detected
Mar 11, 2026 - 23:30 vuln.today
Public exploit code
Patch released
Mar 11, 2026 - 23:30 nvd
Patch available
CVE Published
Feb 25, 2026 - 17:25 nvd
CRITICAL 9.8

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 73% exploitable
Prevalence
Medium
common transitive dependency via c3p0 connection pool in Java apps
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:mchange:mchange_commons_java:*:*:*:*:*:*:*:*

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy