CVE-2026-27727
mchange-commons-java: Remote Code Execution via JNDI Reference Resolution
Description
Impact
mchange-commons-java includes code that mirrors early implementations of JNDI functionality, including support for remote factoryClassLocation values, by which code can be downloaded and invoked within a running application. If an attacker can provoke an application to read a maliciously crafted jaxax.naming.Reference or serialized object, they can provoke the download and execution of malicious code.
Implementations of this functionality within the JDK were disabled by default behind a System property that defaults to false, com.sun.jndi.ldap.object.trustURLCodebase. However, since mchange-commons-java includes an independent implementation of JNDI derefencing, libraries (such as c3p0) that resolve references via that implementation could be provoked to download and execute malicious code even after the JDK was hardened.
Patches
Mirroring the JDK patch, mchange-commons-java's JNDI functionality is now gated by configuration parameters that default to restrictive values. Those parameters are documented here.
Workarounds
No. Users should upgrade to mchange-commons-java >= 0.4.0. Earlier versions should be avoided on application CLASSPATHs.
References
c3p0, you little rascal — Hans-Martin Münchc3p0 documentation, security notec3p0 documentation, configuring security
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.mchange » mchange-commons-java | < 0.4.0 | 0.4.0 |
Blast radius
66% of the dependent artifacts (7,719) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 691 |
| 2 hops | 138,077 |
| 3 hops | 373,782 |
| 4 hops | 224,303 |
| 5 hops | 134,486 |
| 6 hops | 73,830 |
Most used dependents
- org.quartz-scheduler » quartz2,485 usages
- org.apache.kafka » kafka1,450 usages
- com.taoensso » timbre977 usages
- com.mchange » c3p0736 usages
- com.atlassian.confluence » confluence724 usages
- org.openmrs.api » openmrs-api564 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.hibernate » hibernate-c3p0529 usages
- org.openmrs.web » openmrs-web521 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apache.tika » tika-parsers480 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.synapse » synapse-core453 usages
- org.xwiki.platform » xwiki-platform-oldcore449 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-222f-qw44
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-27727
- Packagehttps://github.com/swaldman/mchange-commons-java
- Webhttps://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal
- Webhttps://www.mchange.com/projects/c3p0/#configuring_security
- Webhttps://www.mchange.com/projects/c3p0/#security-note
