Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-134847 EUVD-2026-133252

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

Published Nov 23, 2026 · Updated Nov 23, 2026 · Assigned by PostgreSQL

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 products

VendorProductAffectedFixed
pgjdbc pgjdbc 42.3.0 – < 42.7.15 42.7.15

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libpgjava No fix yet —
Debian 13 libpgjava No fix yet —
Debian 12 libpgjava No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libpgjava No fix yet —
Ubuntu 26.04 LTS libpgjava No fix yet —
Ubuntu 24.04 LTS libpgjava No fix yet —
Ubuntu 22.04 LTS libpgjava No fix yet —
Ubuntu 16.04 LTS libpgjava No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS libpgjava No fix yet —
Ubuntu Pro 20.04 LTS libpgjava No fix yet —
Ubuntu Pro 18.04 LTS libpgjava No fix yet —

Advisories 1

References