{"id":"CVE-2026-55223","aliases":["CVE-2026-55223","GHSA-w6w4-rjh9-9r58"],"related":[],"kind":"vulnerability","state":"published","title":"c3p0 exposes a deserialization \"sink\" via JDBC DataSource bean properties","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe JDBC spec defines the interface `DataSource`, with a method called `getConnection()`, and `ConnectionPoolDataSource`, with a method called `getPooledConnection()`. These methods are potentially dangerous. One way or another they trigger calls into JDBC drivers, which themselves are complicated, flexible tools which may be, and in practice sometimes have proven to be, susceptible to abuse.\n\nUnfortunately, the JavaBean framework treats methods of this form, `getXXX()`, as JavaBean \"properties\", which JavaBean-related libraries often presume represent quick, safe-to-look-up, state or configuration.\n\nAttackers therefore can construct malicious `DataSource` objects — objects whose calls to `getConnection()` or `getPooledConnection()` would trigger attacks via vulnerable JDBC drivers — and bundle them in contexts that automatically look up bean properties on deserialization. If an attacker can smuggle such an object in serialized form to a location from which an application will deserialize it, an attack is triggered.\n\nIt's not easy. It requires that a susceptible JDBC `DataSource` or `ConnectionPoolDataSource` be available on the application `CLASSPATH`, along with a susceptible JDBC driver, and a carrier that will automatically look up JavaBean properties on deserialization. In practice, the most common such carrier is the composition of a collection and a `Comparator` implementation that sorts based on JavaBean properties from Apache [`commons-beanutils`](https://commons.apache.org/proper/commons-beanutils/).\n\nBut c3p0 prior to 0.14.0 offered the susceptible JDBC `DataSource` or `ConnectionPoolDataSource`, supplying an essential component of the trigger.\n\n### Patches\n\nc3p0 versions 0.14.0 and above no longer participate in this class of attack, because they include explicit `BeanInfo` classes which exclude `connection` and `pooledConnection` from the list of \"introspected\" JavaBean properties. Since `getConnection()` and `getPooledConnection()` no longer define JavaBean properties, classes that promiscuously read JavaBean properties do not call them, and the attack is averted.\n\n### Workarounds\n\nIf users can ensure the safety of all JDBC drivers on the application `CLASSPATH`, or that no libraries lie on the `CLASSPATH` that can be composed to trigger automatic JavaBean property lookups on deserialization, then this attack is prevented. Nevertheless, given the complexity of modern JDBC drivers and typical Java application transitive dependencies, it is strongly recommended that users upgrade to c3p0 version 0.14.0 or higher.\n\nSome versions of this attack are foiled by [the stronger encapsulation and restriction of reflective access introduced in Java 16](https://softwaregarden.dev/en/posts/new-java/illegal-access-in-java-16/). Running applications on Java 16+ is therefore a potential mitigation.\n\nThis attack is described by [Hans-Martin Münch](https://mogwailabs.de/en/authors/hans-martin-muench/) in a blog post called \"[Look Mama, no TemplatesImpl](https://mogwailabs.de/en/blog/2023/04/look-mama-no-templatesimpl/)\".","format":"markdown","source":"ghsa"},{"lang":"es","text":"c3p0 es una biblioteca de pooling de conexiones JDBC. En versiones anteriores a la 0.14.0, c3p0, en combinación con otras bibliotecas, puede componer un ’sumidero’ para gadgets de deserialización. DataSource.getConnection() y ConnectionPoolDataSource.getPooledConnection() de la especificación JDBC coinciden con la forma getXXX(), por lo que las bibliotecas JavaBean los tratan como ’propiedades’ que se asumen seguras, mientras que en realidad llaman a los controladores JDBC. Los atacantes pueden así crear objetos DataSource maliciosos cuyas búsquedas de propiedades invocan controladores vulnerables, para luego introducirlos de forma serializada donde una aplicación deserializa y auto-resuelve las propiedades del bean, lo que desencadena el ataque. Esto requiere un DataSource/ConnectionPoolDataSource y un controlador JDBC susceptibles en el CLASSPATH, además de un portador que auto-busque las propiedades de JavaBean en la deserialización, más comúnmente una colección emparejada con un Comparator de Apache commons-beanutils que ordena por propiedades de bean. c3p0 suministró ese DataSource/ConnectionPoolDataSource susceptible, que fue un componente esencial del desencadenante. Este problema ha sido solucionado en la versión 0.14.0.","source":"nvd"}],"published":"2026-06-30T22:56:55.895Z","modified":"2026-10-25T17:10:00.197Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-502","CWE-915"],"affected":[{"ranges":[{"version":"< 0.14.0","status":"affected"}],"vendor":"swaldman","product":"c3p0","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.14.0"}],"ecosystem":"Maven","package":"com.mchange:c3p0","purl":"pkg:maven/com.mchange/c3p0","source":"ghsa"}],"references":[{"url":"https://github.com/swaldman/c3p0/security/advisories/GHSA-w6w4-rjh9-9r58","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/swaldman/c3p0/commit/7b022c4b6694dabc6204254dc917af9c38f2cb27","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55223","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/swaldman/c3p0","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/swaldman/c3p0/releases/tag/v0.14.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-01T13:37:58.554Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55223","url":"https://www.cve.org/CVERecord?id=CVE-2026-55223","licence":"CVE Terms of Use","modified":"2026-07-01T13:38:12.928Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w6w4-rjh9-9r58","url":"https://github.com/advisories/GHSA-w6w4-rjh9-9r58","licence":"CC-BY-4.0","modified":"2026-07-23T20:00:25.133Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55223","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55223","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"}],"updatedAt":"2026-11-25T22:59:26.842Z","epss":{"score":0.00284,"percentile":0.22481,"date":"2026-12-01T12:00:22.000Z"}}