Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-27830

HIGH 8.9EPSS 85%

c3p0 vulnerable to Remote Code Execution via unsafe deserialization of userOverridesAsString property

Also known as GHSA-5476-xc4j-rqcv

Mitigation

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

Who should check

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

Vulnerability facts

Affected
com.mchange:c3p0 < 0.12.0
Fixed in
0.12.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
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:HOpen in CVSS calculator
Show all 11 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
EPSS
2.37% chance of exploitation in 30 days (percentile 85, 2026-11-26)
CWE
CWE-502, CWE-94
Published
Modified

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

Package / productAffectedFixedSource
Maven com.mchange:c3p0< 0.12.00.12.0osv
swaldman c3p0< 0.12.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors