MODERATE 6.5

CVE-2026-134847

pgjdbc stores a different number for a BigDecimal outside the binary numeric range

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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)

ArtifactAffected versionsFixed in
org.postgresql » postgresqlpreliminary
>= 42.3.0, < 42.7.15
42.7.15

Blast radius

1affected artifacts
59affected versions
9,170dependent artifacts (est.)
298,373dependent versions

86% of the dependent artifacts (7,918) still pull an affected version in their latest release.

DepthDependent 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

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.