Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.9
mchange-commons-java Library Allows Malicious Code Execution
CVE-2026-27727
GHSA-m2cm-222f-qw44
Summary
A library used in Java applications can be tricked into downloading and running malicious code if an attacker creates a specially crafted file. This can happen if the library is not updated to a secure version. To avoid this risk, upgrade to mchange-commons-java version 0.4.0 or later.
What to do
- Update mchange com.mchange:mchange-commons-java to version 0.4.0.
Affected software
| Vendor | Product | Affected versions | Fix available |
|---|---|---|---|
| mchange | com.mchange:mchange-commons-java | <= 0.4.0 | 0.4.0 |
| mchange | mchange_commons_java | <= 0.4.0 | – |
Original title
mchange-commons-java, a library that provides Java utilities, includes code that mirrors early implementations of JNDI functionality, including support for remote `factoryClassLocation` values, by ...
Original description
mchange-commons-java, a library that provides Java utilities, 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. Mirroring the JDK patch, mchange-commons-java's JNDI functionality is gated by configuration parameters that default to restrictive values starting in version 0.4.0. No known workarounds are available. Versions prior to 0.4.0 should be avoided on application CLASSPATHs.
nvd CVSS4.0
8.9
Vulnerability type
CWE-74
Injection
CWE-502
Deserialization of Untrusted Data
- https://nvd.nist.gov/vuln/detail/CVE-2026-27727
- https://github.com/advisories/GHSA-m2cm-222f-qw44
- https://github.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-2...
- https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal
- https://www.mchange.com/projects/c3p0/#configuring_security
- https://www.mchange.com/projects/c3p0/#security-note
Published: 25 Feb 2026 · Updated: 12 Mar 2026 · First seen: 6 Mar 2026