Skip to content

Commit 6d5a7b3

Browse files
1 parent 831cee4 commit 6d5a7b3

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-m2cm-222f-qw44",
4+
"modified": "2026-02-25T18:20:05Z",
5+
"published": "2026-02-25T18:20:05Z",
6+
"aliases": [
7+
"CVE-2026-27727"
8+
],
9+
"summary": "mchange-commons-java: Remote Code Execution via JNDI Reference Resolution",
10+
"details": "### Impact\nmchange-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.\n\nImplementations 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.\n\n### Patches\nMirroring 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](https://www.mchange.com/projects/c3p0/#configuring_security).\n\n### Workarounds\nNo. Users should upgrade to mchange-commons-java >= 0.4.0. Earlier versions should be avoided on application CLASSPATHs.\n\n### References\n\n[c3p0, you little rascal — Hans-Martin Münch](https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal/)\n[c3p0 documentation, security note](https://www.mchange.com/projects/c3p0/#security-note)\n[c3p0 documentation, configuring security](https://www.mchange.com/projects/c3p0/#configuring_security)",
11+
"severity": [
12+
{
13+
"type": "CVSS_V4",
14+
"score": "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"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Maven",
21+
"name": "com.mchange:mchange-commons-java"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "0.4.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/swaldman/mchange-commons-java/security/advisories/GHSA-m2cm-222f-qw44"
42+
},
43+
{
44+
"type": "PACKAGE",
45+
"url": "https://github.com/swaldman/mchange-commons-java"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://mogwailabs.de/en/blog/2025/02/c3p0-you-little-rascal"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://www.mchange.com/projects/c3p0/#configuring_security"
54+
},
55+
{
56+
"type": "WEB",
57+
"url": "https://www.mchange.com/projects/c3p0/#security-note"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [
62+
"CWE-502"
63+
],
64+
"severity": "HIGH",
65+
"github_reviewed": true,
66+
"github_reviewed_at": "2026-02-25T18:20:05Z",
67+
"nvd_published_at": null
68+
}
69+
}

0 commit comments

Comments
 (0)