Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Java deserialization endpoint in target application
-
DeliveryCraft serialized payload embedding commons-beanutils BeanComparator over c3p0 DataSource
-
ExploitDeliver payload to deserialization endpoint
-
InstallDeserialization auto-invokes DataSource.getConnection() as bean property
-
C2c3p0 delegates call to vulnerable JDBC driver on classpath
-
ExecuteJDBC driver executes attacker-controlled logic
-
ImpactAchieve remote code execution in JVM process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three simultaneous conditions: (1) The target application must expose an endpoint that deserializes attacker-controlled Java serialized objects - without this, c3p0's presence on the classpath is irrelevant. (2) c3p0 prior to 0.14.0 must be on the application classpath alongside a JDBC driver that executes exploitable side effects when its connection initialization methods are invoked. (3) A carrier mechanism capable of auto-resolving JavaBean properties during deserialization must also be present - the advisory specifically names an Apache commons-beanutils Comparator as the most common carrier. The CVSS 4.0 AT:P metric reflects these classpath and configuration prerequisites. Exploitation is entirely blocked in applications that do not deserialize untrusted data, making the deserialization endpoint the single most important limiting factor. Environments using JDBC drivers that do not perform dangerous operations on connection setup will see reduced or negligible impact even if all other conditions are met. |
| Impact | The official CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L) scores this at 6.3 (Medium). AT:P correctly captures the multiple classpath and deployment prerequisites, but the VC:L/VI:L/VA:L impact metrics appear significantly understated: if all preconditions are met, exploitation through a vulnerable JDBC driver can yield full remote code execution, warranting H-level impact ratings. No EPSS score was supplied in the input data, so probabilistic exploitation likelihood cannot be quantified. This CVE is not listed in CISA KEV, and no public exploit code has been identified at time of analysis. The practical risk is highly bimodal: applications that do not deserialize untrusted Java objects are entirely unexploitable regardless of classpath, while applications that do deserialize untrusted data and carry both commons-beanutils and a vulnerable JDBC driver alongside c3p0 pre-0.14.0 face a realistic path to RCE. The CVSS score should not be treated as a ceiling for severity assessment in the latter case. |
| Exploit ScenarioDerived | An attacker targeting a Java application that accepts serialized Java objects over the network (e.g., a REST or RMI endpoint, a message queue consumer, or a custom protocol handler) crafts a deserialization payload embedding a commons-beanutils BeanComparator configured to sort c3p0 DataSource objects by a property that maps to getConnection(). Upon deserialization, the comparator auto-invokes getConnection() on the attacker-supplied DataSource, which delegates to a vulnerable JDBC driver on the classpath - such as one historically associated with JNDI injection or class-loading gadgets - resulting in arbitrary code execution in the JVM process. No public proof-of-concept has been identified at time of analysis, but the gadget chain pattern is well-documented in prior Java deserialization research and the component roles (carrier, sink, driver) are clearly described in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 30, 2026
Remote code execution risk in c3p0 versions prior to 0.14.0 arises from the library serving as an essential 'sink' in Java deserialization gadget chains. c3p0's DataSource and ConnectionPoolDataSource objects conform to JavaBean's getXXX() naming convention, causing commons-beanutils and similar libraries to invoke JDBC connection methods as though they were safe property accessors during deserialization - triggering arbitrary JDBC driver execution under attacker control. No public exploit code or CISA KEV listing has been identified at time of analysis; the CVSS 4.0 vector scores this at 6.3, largely due to the partial attack requirements (AT:P), though real-world impact when prerequisites are met can substantially exceed that rating.
RemediationAI
The primary fix is to upgrade c3p0 to version 0.14.0 or later, which removes the susceptible DataSource and ConnectionPoolDataSource as gadget sinks. The patch is available at https://github.com/swaldman/c3p0/commit/7b022c4b6694dabc6204254dc917af9c38f2cb27 with the full advisory at https://github.com/swaldman/c3p0/security/advisories/GHSA-w6w4-rjh9-9r58. If immediate patching is not feasible, the most effective compensating control is to restrict Java object deserialization at the application boundary using JEP 290 serialization filters (java.io.ObjectInputFilter), configured to allowlist only known-safe classes and block unknown or untrusted types - this prevents the gadget chain from being assembled regardless of classpath contents, but requires application-level changes and thorough regression testing. As a secondary measure, audit the classpath for known-vulnerable JDBC drivers and remove or upgrade them, since c3p0 alone is a sink but the JDBC driver determines the ultimate exploitable impact. Removing Apache commons-beanutils or pinning it to a version without BeanComparator functionality would also break the carrier mechanism, but may have broader application compatibility implications.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
c3p0 is an open-source JDBC connection pooling library (com.mchange:c3p0) that provides DataSource and ConnectionPoolDataSource implementations. The vulnerability (CWE-502, Deserialization of Untrusted Data) exploits a design-level conflict between the JDBC specification's API naming and JavaBean introspection conventions. Methods such as DataSource.getConnection() and ConnectionPoolDataSource.getPooledConnection() follow the getXXX() pattern that JavaBean libraries treat as safe property accessors. When a deserializer auto-resolves bean properties - most commonly through an Apache commons-beanutils BeanComparator that sorts objects by property value during comparison - any c3p0 DataSource present in the payload has its connection methods invoked automatically. This call propagates into the underlying JDBC driver, which may execute exploitable logic (e.g., loading a class, making a network connection, or running arbitrary SQL). c3p0 supplied the susceptible DataSource sink that was an essential link in this gadget chain, closing the loop between the carrier (commons-beanutils) and the JDBC driver's side effects. No CPE strings were provided in the input; the affected artifact is any com.mchange:c3p0 release below 0.14.0.
Know when the next one hits your stack
- 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:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
AC:H reflects multiple required classpath and deployment prerequisites; S:C because JDBC driver invocation extends side effects beyond c3p0's own security scope; C/I/A:H reflect RCE potential when a vulnerable driver is present.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
c3p0 is a JDBC Connection pooling library. In versions prior to 0.14.0, c3p0 in combination with other libraries, can compose to a "sink" for deserialization gadgets. The JDBC spec's DataSource.getConnection() and ConnectionPoolDataSource.getPooledConnection() match the getXXX() form, so JavaBean libraries treat them as "properties" assumed safe while they actually call into JDBC drivers. Attackers can thus craft malicious DataSource objects whose property lookups invoke vulnerable drivers, then smuggle them in serialized form to where an application deserializes and auto-resolves bean properties - triggering the attack. This requires a susceptible DataSource/ConnectionPoolDataSource and JDBC driver on the CLASSPATH, plus a carrier that auto-looks-up JavaBean properties on = deserialization, most commonly a collection paired with an Apache commons-beanutils Comparator that sorts by bean properties. c3p0 supplied that susceptible DataSource/ConnectionPoolDataSource, which was an essential component of the trigger. This issue has been fixed in version 0.14.0.
Blast Radius
ecosystem impact- 51 maven packages depend on com.mchange:c3p0 (5 direct, 46 indirect)
Ecosystem-wide dependent count for version 0.14.0.
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
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Same weakness CWE-502 – Deserialization of Untrusted Data
View allSame technique Deserialization
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-40847
GHSA-w6w4-rjh9-9r58
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB