GHSA-m2cm-222f-qw44

Suggest an improvement
Source
https://github.com/advisories/GHSA-m2cm-222f-qw44
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-m2cm-222f-qw44/GHSA-m2cm-222f-qw44.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m2cm-222f-qw44
Aliases
Related
Published
2026-02-25T18:20:05Z
Modified
2026-02-28T05:13:57.935334Z
Severity
  • 8.9 (High) CVSS_V4 - 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 Calculator
Summary
mchange-commons-java: Remote Code Execution via JNDI Reference Resolution
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-502",
        "CWE-74"
    ],
    "severity": "HIGH",
    "nvd_published_at": "2026-02-25T17:25:39Z",
    "github_reviewed_at": "2026-02-25T18:20:05Z",
    "github_reviewed": true
}
References

Affected packages

Maven / com.mchange:mchange-commons-java

Package

Name
com.mchange:mchange-commons-java
View open source insights on deps.dev
Purl
pkg:maven/com.mchange/mchange-commons-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.0

Affected versions

0.*
0.2.1-RELEASE
0.2.2
0.2.3
0.2.3.1
0.2.3.2
0.2.3.3
0.2.3.4
0.2.4
0.2.5
0.2.6
0.2.6.1
0.2.6.2
0.2.6.3
0.2.6.5
0.2.7
0.2.8
0.2.9
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.17
0.2.18
0.2.19
0.2.20
0.3.0
0.3.1
0.3.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-m2cm-222f-qw44/GHSA-m2cm-222f-qw44.json"