CVE-2026-27830
c3p0 vulnerable to Remote Code Execution via unsafe deserialization of userOverridesAsString property
Check your servers for CVE-2026-27830
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-27830 affects c3p0, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
c3p0, a JDBC Connection pooling library, is vulnerable to attack via maliciously crafted Java-serialized objects and `javax.naming.Reference` instances. Several c3p0 `ConnectionPoolDataSource` implementations have a property called `userOverridesAsString` which conceptually represents a `Map<String,Map<String,String>>`. Prior to v0.12.0, that property was maintained as a hex-encoded serialized object. Any attacker able to reset this property, on an existing `ConnectionPoolDataSource` or via maliciously crafted serialized objects or `javax.naming.Reference` instances could be tailored execute unexpected code on the application's `CLASSPATH`. The danger of this vulnerability was strongly magnified by vulnerabilities in c3p0's main dependency, mchange-commons-java. This library includes code that mirrors early implementations of JNDI functionality, including ungated support for remote `factoryClassLocation` values. Attackers could set c3p0's `userOverridesAsString` hex-encoded serialized objects that include objects "indirectly serialized" via JNDI references. Deserialization of those objects and dereferencing of the embedded `javax.naming.Reference` objects could provoke download and execution of malicious code from a remote `factoryClassLocation`. Although hazard presented by c3p0's vulnerabilites are exarcerbated by vulnerabilities in mchange-commons-java, use of Java-serialized-object hex as the format for a writable Java-Bean property, of objects that may be exposed across JNDI interfaces, represents a serious independent fragility. The `userOverridesAsString` property of c3p0 `ConnectionPoolDataSource` classes has been reimplemented to use a safe CSV-based format, rather than rely upon potentially dangerous Java object deserialization. c3p0-0.12.0+ and above depend upon mchange-commons-java 0.4.0+, which gates support for remote `factoryClassLocation` values by configuration parameters that default to restrictive values. c3p0 additionally enforces the new mchange-commons-java `com.mchange.v2.naming.nameGuardClassName` to prevent injection of unexpected, potentially remote JNDI names. There is no supported workaround for versions of c3p0 prior to 0.12.0.
Severity (CVSS)
CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.61%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 2 May 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of c3p0 and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i c3p0
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-27830 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-27830RHEL, Rocky, Alma, Fedora
rpm -q c3p0
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-27830Alpine
apk list --installed | grep -i c3p0With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-27830
trivy image --scanners vuln IMAGE | grep CVE-2026-27830
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/swaldman/c3p0/security/advisories/GHSA-5476-xc4j-rqcv github.com
- https://access.redhat.com/security/cve/CVE-2026-27830 access.redhat.com · vdb entry
- RHBZ#2442908 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:18054 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:18055 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:28385 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:4285 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:18059 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:3890 access.redhat.com · vendor advisory
Other references
- https://github.com/swaldman/c3p0/commit/e14cbd8166e423e2e9a9d6f08b2add3433492d6e github.com
- https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal mogwailabs.de
- https://www.mchange.com/projects/c3p0/#configuring_security mchange.com
- https://www.mchange.com/projects/c3p0/#security-note mchange.com
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27830.json security.access.redhat.com
Source: the record CVE-2026-27830 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse