CVE-2026-27727mchange-commons-java: Remote Code Execution via JNDI Reference Resolution
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | c3p0 | Fix pending | UBUNTU-CVE-2026-27727 | |
| Ubuntu 26.04 | c3p0 | Fix pending | 0.9.1.2-11ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-27727 |
| Ubuntu 25.10 | c3p0 | Will not fix mchange-commons-java seem to be included in a few version of c3p0. | UBUNTU-CVE-2026-27727 | |
| Ubuntu 24.04 | c3p0 | Fix pending | 0.9.1.2-10ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-27727 |
| Ubuntu 22.04 | c3p0 | Fix pending | 0.9.1.2-10ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-27727 |
| Ubuntu 20.04 | c3p0 | Fix pending | 0.9.1.2-10ubuntu0.20.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-27727 |
| Ubuntu 18.04 | c3p0 | Fix pending | 0.9.1.2-9+deb8u1ubuntu0.18.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-27727 |
| Ubuntu 16.04 | c3p0 | Fix pending | 0.9.1.2-9+deb8u1ubuntu0.16.04.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-27727 |
| Maven library | com.mchange:mchange-commons-java | Fixed | 0.4.0 | GHSA-m2cm-222f-qw44 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- swaldman mchange-commons-java: affected: < 0.4.0
References
- https://github.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-222f-qw44
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.