CVE-2026-27727
mchange-commons-java: Remote Code Execution via JNDI Reference Resolution
Check your servers for CVE-2026-27727
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-27727 affects mchange-commons-java, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.00%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 63.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 25 Feb 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
- CWE-502 Deserialization of Untrusted Data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| mchange-commons-java |
affected < 0.4.0
|
Is my server affected?
Find the installed version of mchange-commons-java and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i mchange-commons-java
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-27727 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-27727RHEL, Rocky, Alma, Fedora
rpm -q mchange-commons-java
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-27727Alpine
apk list --installed | grep -i mchange-commons-javaWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-27727
trivy image --scanners vuln IMAGE | grep CVE-2026-27727
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-222f-qw44 github.com
- https://access.redhat.com/security/cve/CVE-2026-27727 access.redhat.com · vdb entry
- RHBZ#2442671 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:18054 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14874 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:18055 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14873 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:34365 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:4285 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:18059 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:3890 access.redhat.com · vendor advisory
Other references
- https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal mogwailabs.de
- https://www.mchange.com/projects/c3p0/#configuring_security mchange.com
- https://www.mchange.com/projects/c3p0/#security-note mchange.com
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27727.json security.access.redhat.com
Source: the record CVE-2026-27727 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse