{"answers":{"affected":"2 open source packages ship an affected version, including com.mchange:c3p0.","exploited":"There is no known exploitation of CVE-2026-27830 in the wild and no public exploit code.","fix":"Upgrade com.mchange:c3p0 to 0.12.0 or later.","what":"CVE-2026-27830 is a high-severity unsafe deserialization vulnerability in swaldman c3p0, published on 26 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-27830 and fix it if it is affected.\n\nWhat it is: CVE-2026-27830 is a high-severity unsafe deserialization vulnerability in swaldman c3p0, published on 26 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-27830 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.mchange:c3p0 (Maven): affected all versions; fixed in 0.12.0\n- com.mchange:c3p0 (Maven): affected all versions; fixed in 0.12.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-27830/ (Markdown: https://insights.sbomify.com/CVE-2026-27830/index.md)","id":"CVE-2026-27830","markdown":"https://insights.sbomify.com/CVE-2026-27830/index.md","name":"CVE-2026-27830","record":{"aliases":["CLSA-2026-1784077471","CLSA-2026-1788527318","CLSA-2026-1789372000","DEBIAN-CVE-2026-27830","ECHO-3f0a-9661-fafe","GHSA-5476-xc4j-rqcv","MINI-287g-62hf-xh76","OESA-2026-1691","UBUNTU-CVE-2026-27830"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java connection pooling library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code by exploiting unsafe deserialization of the userOverridesAsString property in the c3p0 JDBC connection pooling library.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.9,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"c3p0, a JDBC Connection pooling library, is vulnerable to attack via maliciously crafted Java-serialized objects and `javax.naming.Reference` instances. Several c3p0 `ConnectionPoolDataSource` implementations have a property called `userOverridesAsString` which conceptually represents a `Map\u003cString,Map\u003cString,String\u003e\u003e`. Prior to v0.12.0, that property was maintained as a hex-encoded serialized object. Any attacker able to reset this property, on an existing `ConnectionPoolDataSource` or via maliciously crafted serialized objects or `javax.naming.Reference` instances could be tailored execute unexpected code on the application's `CLASSPATH`. The danger of this vulnerability was strongly magnified by vulnerabilities in c3p0's main dependency, mchange-commons-java. This library includes code that mirrors early implementations of JNDI functionality, including ungated support for remote `factoryClassLocation` values. Attackers could set c3p0's `userOverridesAsString` hex-encoded serialized objects that include objects \"indirectly serialized\" via JNDI references. Deserialization of those objects and dereferencing of the embedded `javax.naming.Reference` objects could provoke download and execution of malicious code from a remote `factoryClassLocation`. Although hazard presented by c3p0's vulnerabilites are exarcerbated by vulnerabilities in mchange-commons-java, use of Java-serialized-object hex as the format for a writable Java-Bean property, of objects that may be exposed across JNDI interfaces, represents a serious independent fragility. The `userOverridesAsString` property of c3p0 `ConnectionPoolDataSource` classes has been reimplemented to use a safe CSV-based format, rather than rely upon potentially dangerous Java object deserialization. c3p0-0.12.0+ and above depend upon mchange-commons-java 0.4.0+, which gates support for remote `factoryClassLocation` values by configuration parameters that default to restrictive values. c3p0 additionally enforces the new mchange-commons-java `com.mchange.v2.naming.nameGuardClassName` to prevent injection of unexpected, potentially remote JNDI names. There is no supported workaround for versions of c3p0 prior to 0.12.0.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"c3p0 vulnerable to Remote Code Execution via unsafe deserialization of userOverridesAsString property","id":"CVE-2026-27830","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":2,"n_references":5,"next":{"headline":"rldns Vulnerable to Heap-based Out-of-Bounds Read","id":"CVE-2026-27831"},"packages":[{"ecosystem":"Maven","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"com.mchange:c3p0","purl":null,"source":"GHSA-5476-xc4j-rqcv"},{"ecosystem":"Maven","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"com.mchange:c3p0","purl":"pkg:maven/com.mchange/c3p0","source":"GHSA-5476-xc4j-rqcv"}],"prev":{"headline":"Astro is vulnerable to SSRF due to missing allowlist enforcement in remote image inferSize","id":"CVE-2026-27829"},"products":["c3p0"],"published":"2026-02-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-15","vendors":["swaldman"]},"summary":"Attackers can execute arbitrary code by exploiting unsafe deserialization of the userOverridesAsString property in the c3p0 JDBC connection pooling library.","url":"https://insights.sbomify.com/CVE-2026-27830/"}