CVE-2026-27727
JSON

8.9high

mchange-commons-java: Remote Code Execution via JNDI Reference Resolution

Severity
8.9high CVSS:4.0 by GitHub_M
Exploit likelihood
1.00% (higher than 63% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m2cm-222f-qw44

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

Product or packageVersionsReported by
swaldman mchange-commons-java< 0.4.0CVE List
mchangeNot specified
Not affected: from commons-java before *
CVE List
eap8-hibernateNot specified
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 *
CVE List
candlepinNot specified
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 *
CVE List
mchange-commons-javaNot specifiedCVE List
satellite:el8/candlepinNot specifiedCVE List
com.mchange:mchange-commons-java (Maven)before 0.4.0GitHub Advisory Database
mchange mchange_commons_javabefore 0.4.0NVD

All scores

GitHub_M8.9high CVSS:4.0CVSS: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-SADP8.3high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-74CWE-502

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

mchange-commons-java 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.

Patches

Mirroring the JDK patch, mchange-commons-java's JNDI functionality is now gated by configuration parameters that default to restrictive values. Those parameters are documented here.

Workarounds

No. Users should upgrade to mchange-commons-java >= 0.4.0. Earlier versions should be avoided on application CLASSPATHs.

References

c3p0, you little rascal — Hans-Martin Münch c3p0 documentation, security note c3p0 documentation, configuring security

NVD (es)

mchange-commons-java, una librería que proporciona utilidades de Java, incluye código que emula implementaciones tempranas de la funcionalidad JNDI, incluyendo soporte para valores remotos de `factoryClassLocation`, mediante los cuales se puede descargar e invocar código dentro de una aplicación en ejecución. Si un atacante puede provocar que una aplicación lea un `jaxax.naming.Reference` o un objeto serializado maliciosamente diseñado, pueden provocar la descarga y ejecución de código malicioso. Las implementaciones de esta funcionalidad dentro del JDK fueron deshabilitadas por defecto detrás de una propiedad de sistema que por defecto es `false`, `com.sun.jndi.ldap.object.trustURLCodebase`. Sin embargo, dado que mchange-commons-java incluye una implementación independiente de la desreferenciación JNDI, las librerías (como c3p0) que resuelven referencias a través de esa implementación podrían ser provocadas para descargar y ejecutar código malicioso incluso después de que el JDK fuera reforzado. Emulando el parche del JDK, la funcionalidad JNDI de mchange-commons-java está restringida por parámetros de configuración que por defecto tienen valores restrictivos a partir de la versión 0.4.0. No se conocen soluciones alternativas disponibles. Las versiones anteriores a la 0.4.0 deben evitarse en los CLASSPATH de las aplicaciones.

References

https://github.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-222f-qw44patch, vendor-advisory, web
https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascalexploit, third-party-advisory, web
https://www.mchange.com/projects/c3p0/#configuring_securityissue-tracking, web
https://www.mchange.com/projects/c3p0/#security-noterelease-notes, web
https://access.redhat.com/security/cve/CVE-2026-27727vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2442671issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27727.json
https://access.redhat.com/errata/RHSA-2026:18054vendor-advisory
https://access.redhat.com/errata/RHSA-2026:14874vendor-advisory
https://access.redhat.com/errata/RHSA-2026:18055vendor-advisory
https://access.redhat.com/errata/RHSA-2026:14873vendor-advisory
https://access.redhat.com/errata/RHSA-2026:34365vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-27727 changed 2026-09-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-m2cm-222f-qw44 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-27727 changed 2026-08-17Public domain