# CVE-2026-27727: mchange-commons-java: Remote Code Execution via JNDI Reference Resolution

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.9
- **CVSS:** 8.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: High; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.14% (percentile 83, 2026-11-26)
- **CWE:** CWE-74
- **Aliases:** GHSA-m2cm-222f-qw44
- **Published:** 2026-02-25T16:01:04.187Z
- **Modified:** 2026-09-15T12:04:19.805Z

## Who should check

- Projects that depend on Maven package com.mchange:mchange-commons-java (\< 0.4.0)
- Anyone running swaldman mchange-commons-java \< 0.4.0

## 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.

## Affected and fixed versions

- Maven `com.mchange:mchange-commons-java`: affected \< 0.4.0; fixed 0.4.0 (osv)
- swaldman mchange-commons-java: \< 0.4.0 (cvelist)

## Mitigation

- Upgrade com.mchange:mchange-commons-java to 0.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27727. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27727.md
Affected: com.mchange:mchange-commons-java < 0.4.0
Fixed in: 0.4.0

Steps:
1. Search this machine and project for com.mchange:mchange-commons-java (Maven), swaldman mchange-commons-java: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27727 being exploited?

There is no confirmed exploitation: CVE-2026-27727 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27727?

High: CVSS 8.9 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-27727?

com.mchange:mchange-commons-java \< 0.4.0.

### Is there a fix for CVE-2026-27727?

Yes. Fixed in 0.4.0. Upgrade com.mchange:mchange-commons-java to 0.4.0 or later.

### How do I check if I'm affected by CVE-2026-27727?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-222f-qw44>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18054>
- vendor: <https://access.redhat.com/errata/RHSA-2026:14874>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18055>
- vendor: <https://access.redhat.com/errata/RHSA-2026:14873>
- vendor: <https://access.redhat.com/errata/RHSA-2026:34365>
- vendor: <https://access.redhat.com/errata/RHSA-2026:4285>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18059>
- vendor: <https://access.redhat.com/errata/RHSA-2026:3890>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27727>
- exploit: <https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal>
- other: <https://www.mchange.com/projects/c3p0/#configuring_security>
- other: <https://www.mchange.com/projects/c3p0/#security-note>
- other: <https://access.redhat.com/security/cve/CVE-2026-27727>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2442671>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27727.json>
- other: <https://github.com/swaldman/mchange-commons-java>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27727>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m2cm-222f-qw44> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27727> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27727>
