CVE-2026-134847
pgjdbc stores a different number for a BigDecimal outside the binary numeric range
Description
pgjdbc, the PostgreSQL JDBC Driver, cuts the weight and scale of a BigDecimal to 16 bits when it sends the value in binary, which is the default. The server then stores a different number without an error. For example 999999.99e-262144 is stored as 999999.99, so a tiny value can pass a range check and be stored as a large one. The driver also computes 10 to the power of the scale first, so a short value such as 1e-200000000 keeps a thread busy for minutes. Versions 42.3.0 through 42.7.14 are affected, and 42.7.15 fixes the problem.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.postgresql » postgresqlpreliminary | >= 42.3.0, < 42.7.15 | 42.7.15 |
Blast radius
86% of the dependent artifacts (7,918) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 71,791 |
| 2 hops | 123,014 |
| 3 hops | 66,445 |
| 4 hops | 25,219 |
| 5 hops | 9,542 |
| 6 hops | 2,362 |
Most used dependents
- org.apache.kafka » kafka1,450 usages
- com.atlassian.confluence » confluence724 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-hive633 usages
- org.dbunit » dbunit596 usages
- org.openmrs.api » openmrs-api564 usages
- org.openmrs.web » openmrs-web521 usages
- org.openmrs.test » openmrs-test514 usages
- org.apache.solr » solr-core500 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-service301 usages
- io.quarkus » quarkus-jdbc-postgresql235 usages
- net.postgis » postgis-jdbc214 usages
- org.geoserver.web » gs-web-core194 usages
- org.hibernate » hibernate-spatial182 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134847.json
- Packagehttps://github.com/pgjdbc/pgjdbc
- Advisoryhttps://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cjcw-9r77-4gwm
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-134847
- Webhttps://repo.maven.apache.org/maven2
