pgjdbc stores a different number for a BigDecimal outside the binary numeric range
Summary
| CVE | CVE-2026-134847 |
|---|---|
| State | PUBLISHED |
| Assigner | PostgreSQL |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-23 17:17:49 UTC |
| Updated | 2026-11-23 17:17:49 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Problem Types: CWE-197 | CWE-400 | CWE-197 CWE-197 Numeric Truncation Error | CWE-400 CWE-400 Uncontrolled Resource Consumption
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cjcw-9r77-4gwm | f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Anthropic OSS Scanner (ANT-2026-6FX8KOK1) (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-6FX8KOK1). |
Solutions
CNA: Upgrade to pgjdbc 42.7.15 or later.
Workarounds
CNA: Set binaryTransfer=false, or reject BigDecimal values with a very large or very small exponent before binding them.
There are currently no legacy QID mappings associated with this CVE.