# CVE-2026-27830: c3p0 vulnerable to Remote Code Execution via unsafe deserialization of userOverridesAsString property

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.9
- **CVSS:** 8.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 2.37% (percentile 85, 2026-11-26)
- **CWE:** CWE-502, CWE-94
- **Aliases:** GHSA-5476-xc4j-rqcv
- **Published:** 2026-02-25T18:35:23.000Z
- **Modified:** 2026-09-15T12:04:22.713Z

## Who should check

- Projects that depend on Maven package com.mchange:c3p0 (\< 0.12.0)
- Anyone running swaldman c3p0 \< 0.12.0

## 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.

## Affected and fixed versions

- Maven `com.mchange:c3p0`: affected \< 0.12.0; fixed 0.12.0 (osv)
- swaldman c3p0: \< 0.12.0 (cvelist)

## Mitigation

- Upgrade com.mchange:c3p0 to 0.12.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27830. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27830.md
Affected: com.mchange:c3p0 < 0.12.0
Fixed in: 0.12.0

Steps:
1. Search this machine and project for com.mchange:c3p0 (Maven), swaldman c3p0: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27830 being exploited?

There is no confirmed exploitation: CVE-2026-27830 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.37% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27830?

High: CVSS 8.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-27830?

com.mchange:c3p0 \< 0.12.0.

### Is there a fix for CVE-2026-27830?

Yes. Fixed in 0.12.0. Upgrade com.mchange:c3p0 to 0.12.0 or later.

### How do I check if I'm affected by CVE-2026-27830?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/swaldman/c3p0/security/advisories/GHSA-5476-xc4j-rqcv>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18054>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18055>
- vendor: <https://access.redhat.com/errata/RHSA-2026:28385>
- vendor: <https://access.redhat.com/errata/RHSA-2026:4285>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18059>
- vendor: <https://access.redhat.com/errata/RHSA-2026:3890>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27830>
- patch: <https://github.com/swaldman/c3p0/commit/e14cbd8166e423e2e9a9d6f08b2add3433492d6e>
- other: <https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal>
- other: <https://www.mchange.com/projects/c3p0/#configuring_security>
- other: <https://www.mchange.com/projects/c3p0/#security-note>
- other: <https://access.redhat.com/security/cve/CVE-2026-27830>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2442908>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27830.json>
- other: <https://github.com/swaldman/c3p0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27830>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-5476-xc4j-rqcv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27830> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27830>
