cve.bz

CVE-2026-27830 swaldman c3p0: Code Injection

8.9 highEPSS 0.6%Fix available

High (8.9) in swaldman c3p0. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in com.mchange:c3p0 0.12.0.

On this page
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<String,Map<String,String>>`. 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.

Severity

CVSS 4.0

8.9 high
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

CVSS 3.1

8.0 high
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A05:2025 Injection, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-27830 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-27830?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-27830?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-27830 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
swaldman c3p0< 0.12.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5476-xc4j-rqcvMavencom.mchange:c3p0<0.12.00.12.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14c3p0no fix listedDEBIAN-CVE-2026-27830
Ubuntu25.10, 26.10c3p0no fix listedUBUNTU-CVE-2026-27830
UbuntuPro:16.04:LTSc3p00.9.1.2-9+deb8u1ubuntu0.16.04.1~esm2UBUNTU-CVE-2026-27830
UbuntuPro:18.04:LTSc3p00.9.1.2-9+deb8u1ubuntu0.18.04.1+esm1UBUNTU-CVE-2026-27830 USN-8642-1
UbuntuPro:20.04:LTSc3p00.9.1.2-10ubuntu0.20.04.1+esm1UBUNTU-CVE-2026-27830 USN-8642-1
UbuntuPro:22.04:LTSc3p00.9.1.2-10ubuntu1+esm1UBUNTU-CVE-2026-27830 USN-8642-1
UbuntuPro:24.04:LTSc3p00.9.1.2-10ubuntu2+esm1UBUNTU-CVE-2026-27830 USN-8642-1
UbuntuPro:26.04:LTSc3p00.9.1.2-11ubuntu0.1~esm1UBUNTU-CVE-2026-27830 USN-8642-1
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-activemq-artemis, eap8-activemq-artemis-cli, eap8-activemq-artemis-dto and 12 more0:2.40.0-6.redhat_00012.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-angus, eap8-angus-mail0:2.0.5-1.redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-angus-activation0:2.0.3-1.redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-bouncycastle, eap8-bouncycastle-pg, eap8-bouncycastle-pkix and 3 more0:1.84.0-1.redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-eap-product-conf-parent, eap8-eap-product-conf-wildfly-ee-feature-pack0:801.6.0-1.GA_redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-guava, eap8-guava-libraries0:33.0.0-3.jre_redhat_00004.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-guava-failureaccess0:1.0.3-1.redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-hal-console0:3.7.19-1.Final_redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-hibernate, eap8-hibernate-core, eap8-hibernate-envers0:6.6.48-1.Final_redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-hibernate-search, eap8-hibernate-search-engine, eap8-hibernate-search-mapper-orm and 4 more0:7.2.6-1.Final_redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-jakarta-activation0:2.1.4-1.redhat_00001.1.el8eapRHSA-2026:18054
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-jboss-logging0:3.6.2-1.Final_redhat_00001.1.el8eapRHSA-2026:18054
47 more for Red Hat in the JSON and on Red Hat's page.
openSUSELeap 15.6c3p00.9.5.5-150400.3.5.1SUSE-SU-2026:0855-1
openSUSELeap 15.6mchange-commons0.2.20-150400.3.3.1SUSE-SU-2026:0855-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has evaluated this vulnerability as having an Important security impact because successful exploitation allows arbitrary code execution with the permissions of the application process, though it requires existing privileges or an adjacent network position to supply malicious data sources. In Red Hat enterprise environments, connection pooling components such as c3p0 are embedded within internal service layers and are rarely exposed to direct, untrusted external input. Therefore, the threat is predominantly constrained to deployments where attackers already possess authenticated access or can alter internal naming and configuration parameters.

ProductPackageStateAdvisory
Red Hat build of Apache Camel 4.14.4 for Spring Boot 3.5.11com.mchange/c3p0Fixed 2026-03-05RHSA-2026:3890
Red Hat Build of Debezium 3.2com.mchange/c3p0Fixed 2026-03-11RHSA-2026:4285
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-hibernate-0:5.1.17-5.Final_redhat_00006.1.ep7.el7Fixed 2026-09-30RHSA-2026:73976
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-netty-0:4.1.63-4.Final_redhat_00005.1.ep7.el7Fixed 2026-09-30RHSA-2026:73976
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-wildfly-0:7.1.16-1.GA_redhat_00002.1.ep7.el7Fixed 2026-09-30RHSA-2026:73976
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-hibernate-0:5.3.39-1.Final_redhat_00001.1.el7eapFixed 2026-09-30RHSA-2026:73644
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-jboss-server-migration-0:1.7.2-24.Final_redhat_00026.1.el7eapFixed 2026-09-30RHSA-2026:73644
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-netty-0:4.1.63-7.Final_redhat_00005.1.el7eapFixed 2026-09-30RHSA-2026:73644
Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7eap7-wildfly-0:7.3.19-1.GA_redhat_00004.1.el7eapFixed 2026-09-30RHSA-2026:73644
Red Hat JBoss Enterprise Application Platform 8.1.6.GAorg.hibernate.orm/hibernate-core:6.6.48.Final-redhat-00001Fixed 2026-05-18RHSA-2026:18059
Red Hat build of Apache Camel - HawtIO 4com.mchange/c3p0Not affected
Red Hat build of Debezium 2com.mchange/c3p0Affected
Red Hat build of Debezium 2org.hibernate.orm/hibernate-c3p0Affected
Red Hat build of Debezium 3org.hibernate.orm/hibernate-c3p0Affected
Red Hat Fuse 7c3p0/c3p0Will not fix
Red Hat JBoss Enterprise Application Platform 7com.mchange/c3p0Will not fix
Red Hat JBoss Enterprise Application Platform 7org.hibernate/hibernate-c3p0Will not fix
Red Hat JBoss Enterprise Application Platform 8c3p0Not affected
Red Hat JBoss Enterprise Application Platform 8c3p0/c3p0Affected
Red Hat JBoss Enterprise Application Platform 8hibernate-c3p0Not affected
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-27830.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON