Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-55223 EUVD-2026-40847GHSA-w6w4-rjh9-9r58

c3p0 exposes a deserialization "sink" via JDBC DataSource bean properties

Published Jun 30, 2026 · Updated Jul 1, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
swaldman c3p0 < 0.14.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 c3p0 No fix yet —
Debian 13 c3p0 No fix yet —
Debian 12 c3p0 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 c3p0 No fix yet —
Ubuntu 25.10 c3p0 No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS c3p0 0.9.1.2-11ubuntu0.1~esm1 USN-8642-1
Ubuntu Pro 24.04 LTS c3p0 0.9.1.2-10ubuntu2+esm1 USN-8642-1
Ubuntu Pro 22.04 LTS c3p0 0.9.1.2-10ubuntu1+esm1 USN-8642-1
Ubuntu Pro 20.04 LTS c3p0 0.9.1.2-10ubuntu0.20.04.1+esm1 USN-8642-1
Ubuntu Pro 18.04 LTS c3p0 0.9.1.2-9+deb8u1ubuntu0.18.04.1+esm1 USN-8642-1
Ubuntu Pro 16.04 LTS c3p0 0.9.1.2-9+deb8u1ubuntu0.16.04.1~esm2 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed c3p0 0.14.1-1.1 openSUSE-SU-2026:11166-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.mchange:c3p0 < 0.14.0 0.14.0 GHSA-w6w4-rjh9-9r58

Advisories 2

References