Paper/Archive/CVE-2026-27727

CVE-2026-27727

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

Description · from the CVE record

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

ProductAffectedFixed inSource
mchange-commons-java< 0.4.0–CNA
Red Hat build of Apache Camel 4.14.4 for Spring Boot 3.5.11see advisorycommons-javaredhat-SADP
Red Hat Build of Debezium 3.2see advisorycommons-javaredhat-SADP
Red Hat JBoss Enterprise Application Platform 8.1see advisorycommons-javaredhat-SADP
Red Hat JBoss Enterprise Application Platform 8.1 for RHEL 8see advisory0:6.6.48-1.Final_redhat_00001.1.el8eapredhat-SADP
Red Hat JBoss Enterprise Application Platform 8.1 for RHEL 9see advisory0:6.6.48-1.Final_redhat_00001.1.el9eapredhat-SADP
Red Hat Satellite 6.16 for RHEL 8see advisory0:4.4.25-1.el8satredhat-SADP
Red Hat Satellite 6.16 for RHEL 9see advisory0:4.4.25-1.el9satredhat-SADP
Red Hat Satellite 6.17 for RHEL 9see advisory0:4.4.25-1.el9satredhat-SADP
Red Hat Satellite 6.19 for RHEL 9see advisory0:4.7.5-1.el9satredhat-SADP
Red Hat build of Apache Camel - HawtIO 4see advisory–redhat-SADP
Red Hat build of Debezium 2see advisory–redhat-SADP

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub_M (CNA)8.9CVSS: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 (CNA)8.3CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
CISA ADPSSVCExploitation: poc · Automatable: no · Technical impact: total

References

refgithub.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-222f-qw44refmogwailabs.de/en/blog/2025/02/c3p0-you-little-rascalrefmchange.com/projects/c3p0/#configuring_securityrefmchange.com/projects/c3p0/#security-noterefaccess.redhat.com/security/cve/CVE-2026-27727refbugzilla.redhat.com/show_bug.cgi?id=2442671refsecurity.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27727.jsonadvisoryaccess.redhat.com/errata/RHSA-2026:18054advisoryaccess.redhat.com/errata/RHSA-2026:14874advisoryaccess.redhat.com/errata/RHSA-2026:18055advisoryaccess.redhat.com/errata/RHSA-2026:14873advisoryaccess.redhat.com/errata/RHSA-2026:34365advisoryaccess.redhat.com/errata/RHSA-2026:4285advisoryaccess.redhat.com/errata/RHSA-2026:18059advisoryaccess.redhat.com/errata/RHSA-2026:3890