Skip to main content

c3p0 CVE-2026-27830

HIGH
Code Injection (CWE-94)
2026-02-26 security-advisories@github.com GHSA-5476-xc4j-rqcv
8.9
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain adjacent/low-priv access to influence DataSource config
  2. Delivery
    Set userOverridesAsString to crafted serialized hex with JNDI Reference
  3. Exploit
    c3p0 deserializes property and dereferences Reference
  4. Execution
    Fetch malicious factory class from remote factoryClassLocation
  5. Persist
    Instantiate class, execute code on CLASSPATH
  6. Impact
    Full compromise of application host

Vulnerability Assessment

Weakness
CWE
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker be able to reset/control the userOverridesAsString property of a c3p0 ConnectionPoolDataSource, OR supply a maliciously crafted Java-serialized object or javax.naming.Reference that the application deserializes/dereferences. Concretely, the affected version must be c3p0 prior to 0.12.0 (with vulnerable mchange-commons-java < 0.4.0 enabling ungated remote factoryClassLocation), and the deployment must allow attacker-influenced DataSource configuration or JNDI resolution. Limiting factors: per CVSS 4.0 the attacker needs adjacent access (AV:A), at least low privileges (PR:L), and a specific attack requirement is present (AT:P) - meaning a static, fully-trusted pool configuration with no JNDI exposure and no deserialization of untrusted DataSource properties is not exploitable. Successful remote-code retrieval additionally needs the application host to be able to reach the attacker's factoryClassLocation codebase server.

Impact

Signals diverge and should be weighed together. The CVSS 4.0 base score is 8.9 (high) with VC/VI/VA all High, reflecting full RCE on the host application, but the vector is AV:A (adjacent), PR:L (privileges required) and AT:P (a specific attack requirement must be met) - i.e. not trivial internet-wide exploitation. EPSS is low at 0.15% (35th percentile), and the vulnerability is NOT in CISA KEV, indicating no confirmed active exploitation. No public exploit was supplied in the input, although the referenced MogwaiLabs research ("c3p0, you little rascal") documents the attack class in detail, lowering the practical bar for a skilled attacker. The realistic prerequisite - an attacker must be able to control the userOverridesAsString property or feed a malicious serialized object / JNDI Reference into the DataSource - means risk is highly deployment-dependent: applications that deserialize untrusted DataSource configuration or expose c3p0 DataSources over JNDI are at genuine RCE risk, whereas applications with fully static, trusted pool configuration are largely insulated. Net: a serious-impact but precondition-gated issue - prioritize patching where DataSource config or JNDI lookups can be influenced by untrusted input, rather than treating it as a drive-by mass-exploitation threat.

Exploit ScenarioDerived

An attacker who can influence a c3p0 ConnectionPoolDataSource configuration - for example via an application feature that accepts or deserializes DataSource properties, or a JNDI lookup the attacker can steer - sets userOverridesAsString to a hex-encoded serialized payload embedding a javax.naming.Reference whose factoryClassLocation points to an attacker-hosted server. When c3p0 deserializes the property and dereferences the Reference, it downloads and instantiates the malicious factory class, executing arbitrary code on the application's CLASSPATH. The attack-class technique is publicly documented (MogwaiLabs), though no turnkey exploit was provided in the input and the CVSS adjacent/low-privilege/attack-requirement metrics make this a targeted rather than spray-and-pray scenario.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – Jun 30, 2026

Remote code execution in c3p0 (a Java JDBC connection-pooling library) before v0.12.0 allows an attacker who can set the userOverridesAsString property of a ConnectionPoolDataSource - or inject a crafted serialized object or javax.naming.Reference - to load and run arbitrary code on the application's CLASSPATH. The flaw stems from storing this writable Java-Bean property as a hex-encoded Java-serialized object, and is amplified by its dependency mchange-commons-java, which mirrored legacy JNDI behavior with ungated support for remote factoryClassLocation values, enabling download and execution of attacker-hosted classes. EPSS is low (0.15%) and there is no public exploit identified at time of analysis, though deserialization/JNDI gadget techniques against this library are publicly documented.

Earlier versions of this analysis (4)
v4 Jun 30, 2026 - 05:18 cvss changed CVSS 8.9

Remote code execution in the c3p0 JDBC connection-pool library (versions prior to 0.12.0) arises because the userOverridesAsString property of ConnectionPoolDataSource implementations was stored as a hex-encoded Java-serialized object; an attacker able to set this property - or supply crafted serialized objects or javax.naming.Reference instances - can trigger deserialization and JNDI dereferencing that loads and runs code from a remote factoryClassLocation. The flaw is amplified by c3p0's dependency mchange-commons-java, which historically permitted ungated remote factoryClassLocation values. This is no public exploit identified at time of analysis (no CISA KEV listing), though MogwaiLabs published a detailed technical writeup of the exploitation technique, and EPSS is low at 0.15% (35th percentile).

v3 Jun 30, 2026 - 05:17 cvss changed CVSS 8.9

Remote code execution in the c3p0 JDBC connection-pooling library (prior to v0.12.0) arises because the userOverridesAsString property of its ConnectionPoolDataSource classes was persisted as a hex-encoded Java-serialized object; an attacker able to reset that property or supply crafted serialized objects or javax.naming.Reference instances can trigger deserialization that loads and runs attacker-controlled classes from the application CLASSPATH. The danger is amplified by c3p0's dependency mchange-commons-java, whose ungated JNDI-mirroring code honors remote factoryClassLocation values, enabling download and execution of malicious code from an attacker-hosted endpoint. It carries a CVSS 4.0 base score of 8.9; EPSS is low (0.15%, 35th percentile) and it is not in CISA KEV, with no public exploit identified at time of analysis, though a detailed MogwaiLabs technical writeup of the technique exists.

v2 Jun 30, 2026 - 05:16 cvss changed CVSS 8.9

Remote code execution in the c3p0 JDBC connection-pooling library (versions prior to 0.12.0) allows an attacker who can set or reset the userOverridesAsString property of a ConnectionPoolDataSource to achieve arbitrary code execution on the application CLASSPATH. Because that property was stored as a hex-encoded Java-serialized object, a crafted payload can carry javax.naming.Reference instances that - through unsafe JNDI handling in the bundled mchange-commons-java dependency - trigger download and execution of attacker-controlled code from a remote factoryClassLocation. No active exploitation is recorded in CISA KEV and EPSS is low (0.15%), but a detailed public technical writeup (MogwaiLabs) describes the attack technique, so weaponization knowledge is in the open.

v1 Mar 12, 2026 - 21:55

potentially remote JNDI names. There is no supported workaround for versions of c3p0 versions up to 0.12.0. is affected by code injection.

RemediationAI

Vendor-released patch: c3p0 0.12.0 - upgrade c3p0 to 0.12.0 or later, which also pulls in mchange-commons-java 0.4.0+ (the fix changes userOverridesAsString to a safe CSV format, gates remote factoryClassLocation to restrictive defaults, and enforces the com.mchange.v2.naming.nameGuardClassName guard). For Red Hat distributions, apply the corresponding errata (RHSA-2026:18054 / 18055 / 18059 / 28385 / 3890 / 4285) per product. The vendor explicitly states there is no supported workaround for versions prior to 0.12.0, so upgrading is the only reliable fix; if an upgrade cannot be deployed immediately, compensating controls are to ensure DataSource/pool configuration (including any userOverridesAsString value) comes only from trusted, static sources and is never populated from user-controlled input or untrusted deserialization, and to prevent c3p0 DataSources from being resolved through JNDI lookups that can reference attacker-controlled factoryClassLocation URLs - e.g. block outbound network access from app servers to untrusted LDAP/RMI/HTTP codebase endpoints. The trade-off is that locking down JNDI/codebase resolution and config sources can break legitimate dynamic JNDI deployments and must be validated. Refer to the GHSA-5476-xc4j-rqcv advisory and https://www.mchange.com/projects/c3p0/#configuring_security.

Affected Packages

maven com.mchange:c3p0 fix: 0.12.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

c3p0 is a mature JDBC DataSource/ConnectionPoolDataSource connection-pool implementation widely embedded in Java/Hibernate applications. The root cause is CWE-94 (code injection) arising from unsafe Java deserialization: the userOverridesAsString bean property, conceptually a Map<String,Map<String,String>>, was persisted as a hex-encoded serialized object stream. Because such DataSources are frequently exposed across JNDI, the property value can be reconstructed via Object deserialization and any embedded javax.naming.Reference can be dereferenced. The dependency mchange-commons-java reimplemented early JNDI semantics including remote factoryClassLocation, so a Reference can point at a remote codebase URL; dereferencing it fetches and instantiates an attacker-controlled factory class - the classic JNDI/codebase RCE primitive. The fix (0.12.0) replaces the serialized-hex format with a safe CSV encoding, requires mchange-commons-java 0.4.0+ which gates remote factoryClassLocation behind restrictive-by-default config, and enforces a com.mchange.v2.naming.nameGuardClassName guard against unexpected/remote JNDI names.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.9 HIGH
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
vuln.today AI 8.5 HIGH

Exploitation requires control of DataSource config or a JNDI-injectable Reference (PR:L, AC:H) and yields RCE crossing into the runtime environment via remote codebase (S:C), with full C/I/A impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 8.0 HIGH
AV:A/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Red Hat 8.0 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

7
Analysis Updated
Jun 30, 2026 - 05:18 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:18 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:17 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:16 vuln.today
v2 - CVSS changed
CVSS changed
Jun 30, 2026 - 03:23 NVD
8.9 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Feb 26, 2026 - 01:16 nvd
N/A

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The c3p0 Java JDBC connection pooling library (versions before 0.12.0) contains a remote code execution vulnerability affecting any organization running applications that depend on this widely-used database connection component. An attacker with configuration-level access can execute arbitrary code through deserialization attacks, potentially compromising database operations and sensitive data. Immediate identification and upgrade of affected applications is required.

Business Impact: High
Compensating Controls

Apply vendor patch: Upgrade c3p0 to version 0.12.0 or later.

Threat Intelligence Overview

EPSS Score
0.1%
Top 65% exploitable
Prevalence
High
c3p0 is a widely embedded Java/Hibernate JDBC connection-pool library
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/manager/4.3/proxy-httpd:4.3.17.9.76.1 Affected
Container suse/manager/5.0/x86_64/server-attestation:latest Container suse/manager/5.0/x86_64/server:latest Container suse/multi-linux-manager/5.1/x86_64/server-attestation:5.1.3.8.18.1 Container suse/multi-linux-manager/5.1/x86_64/server:5.1.3.8.16.1 Image server-attestation-image Image server-image Image server-image-sles15sp7 Affected
SUSE Manager Proxy LTS 4.3 Fixed
SUSE Manager Retail Branch Server LTS 4.3 Fixed
SUSE Manager Server LTS 4.3 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy