Skip to main content

c3p0 CVE-2026-55223

| EUVDEUVD-2026-40847 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-06-30 security-advisories@github.com GHSA-w6w4-rjh9-9r58
6.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Recon
    Identify Java deserialization endpoint in target application
  2. Delivery
    Craft serialized payload embedding commons-beanutils BeanComparator over c3p0 DataSource
  3. Exploit
    Deliver payload to deserialization endpoint
  4. Install
    Deserialization auto-invokes DataSource.getConnection() as bean property
  5. C2
    c3p0 delegates call to vulnerable JDBC driver on classpath
  6. Execute
    JDBC driver executes attacker-controlled logic
  7. Impact
    Achieve 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

c3p0 < 0.14.0

Affected Packages

maven com.mchange:c3p0 fix: 0.14.0
euvd c3p0 fix: 0.14.0

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

Vendor (github) PRIMARY 6.3 MEDIUM
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
vuln.today AI 9.0 CRITICAL

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.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
Jul 23, 2026 - 23:03 EUVD
CVE Published
Jun 30, 2026 - 23:17 cve.org
MEDIUM 6.3

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 51 maven packages depend on com.mchange:c3p0 (5 direct, 46 indirect)

Ecosystem-wide dependent count for version 0.14.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
widely-used Java JDBC connection pooling library in enterprise apps
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed

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