HIGH 8.9

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)

ArtifactAffected versionsFixed in
com.mchange » mchange-commons-java
< 0.4.0
0.4.0

Blast radius

1affected artifacts
46affected versions
11,535dependent artifacts (est.)
945,169dependent versions

66% of the dependent artifacts (7,719) still pull an affected version in their latest release.

DepthDependent 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

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.