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

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T16:01:04.187Z
- Modified: 2026-09-15T12:04:19.805Z
- Also known as: GHSA-m2cm-222f-qw44
- Weaknesses: CWE-74, CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- swaldman mchange-commons-java: < 0.4.0
- mchange: no versions given (not affected: from commons-java before *)
- eap8-hibernate: no versions given (not affected: from 0:6.6.48-1.Final_redhat_00001.1.el8eap before *; from 0:6.6.48-1.Final_redhat_00001.1.el9eap before *)
- candlepin: no versions given (not affected: from 0:4.4.25-1.el8sat before *; from 0:4.4.25-1.el9sat before *; from 0:4.7.5-1.el9sat before *)
- mchange-commons-java: no versions given
- satellite:el8/candlepin: no versions given
- com.mchange:mchange-commons-java (Maven): before 0.4.0
- mchange mchange_commons_java: before 0.4.0

## Every score

- GitHub_M: CVSS:4.0 8.9 High `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`
- redhat-SADP: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-27727](https://www.cve.org/CVERecord?id=CVE-2026-27727), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-m2cm-222f-qw44](https://github.com/advisories/GHSA-m2cm-222f-qw44), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27727](https://nvd.nist.gov/vuln/detail/CVE-2026-27727), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-27727 · Whole record: https://cve.day/CVE-2026-27727.json · Rebuilt by cve.day 2026-11-25T22:59:14.865Z
