CVE-2026-134847

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

Published Nov 23, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Solution

Upgrade to pgjdbc 42.7.15 or later.


Vendor Workaround

Set binaryTransfer=false, or reject BigDecimal values with a very large or very small exponent before binding them.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pgjdbc
Pgjdbc pgjdbc
Vendors & Products Pgjdbc
Pgjdbc pgjdbc
Type Values Removed Values Added
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.
Title pgjdbc stores a different number for a BigDecimal outside the binary numeric range
Weaknesses CWE-197
CWE-400
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 23, 2026, 7:28 PM
Reserved
Nov 22, 2026, 5:13 PM
Status
Awaiting Analysis
Published
Nov 23, 2026, 5:17 PM
Modified
Nov 24, 2026, 6:56 PM