Update dependency com.mchange:c3p0 to v0.12.0 [SECURITY] (3.33)#4033
Merged
renovate[bot] merged 1 commit into3.33from Feb 26, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.10.2→0.12.0c3p0 vulnerable to Remote Code Execution via unsafe deserialization of userOverridesAsString property
CVE-2026-27830 / GHSA-5476-xc4j-rqcv
More information
Details
Impact
c3p0 is vulnerable to attack via maliciously crafted Java-serialized objects and
javax.naming.Referenceinstances. Several c3p0ConnectionPoolDataSourceimplementations have a property calleduserOverridesAsStringwhich conceptually represents aMap<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 existingConnectionPoolDataSourceor via maliciously crafted serialized objects orjavax.naming.Referenceinstances could be tailored execute unexpected code on the application'sCLASSPATH.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
factoryClassLocationvalues. Attackers could set c3p0'suserOverridesAsStringhex-encoded serialized objects that include objects "indirectly serialized" via JNDI references. Deserialization of those objects and dereferencing of the embeddedjavax.naming.Referenceobjects could provoke download and execution of malicious code from a remotefactoryClassLocation.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.
Patches
The
userOverridesAsStringproperty of c3p0ConnectionPoolDataSourceclasses 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
factoryClassLocationvalues by configuration parameters that default to restrictive values. Those parameters are documented here.c3p0 additionally enforces the new mchange-commons-java
com.mchange.v2.naming.nameGuardClassNameto prevent injection of unexpected, potentially remote JNDI names.Workarounds
Users should upgrade to c3p0-0.12.0 or above. There is no supported workaround for earlier versions of c3p0.
References
c3p0, you little rascal — Hans-Martin Münch
c3p0 documentation, security note
c3p0 documentation, configuring security
Severity
CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
swaldman/c3p0 (com.mchange:c3p0)
v0.12.0Compare Source
v0.11.2Compare Source
v0.11.1v0.11.0v0.11.0-pre2Compare Source
v0.11.0-pre1Configuration
📅 Schedule: Branch creation - "" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.