pgjdbc stores a wrong number for BigDecimal values outside binary range
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-400.
Summary
pgjdbc, the PostgreSQL JDBC Driver, from 42.3.0 before 42.7.15 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, so a tiny value such as 999999.99e-262144 can be stored as 999999.99 and pass a range check as a large value. The driver also computes 10 to the power of the scale first, so a short value such as 1e-200000000 can keep a thread busy for minutes (CWE-197, CWE-400).
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PostgreSQL | pgjdbc | 42.3.0 to before 42.7.15 | 42.7.15 | Patch available | CNA |
- pgjdbc VendorPostgreSQL Affected 42.3.0 to before 42.7.15 Fixed in 42.7.15 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:* | — | — | PostgreSQL |
- cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:* Versions — — ·PostgreSQL
Remediation
Upgrade pgjdbc to version 42.7.15 or later, which fixes the problem.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA pgjdbc (pgjdbc) Fixed in 42.7.15
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
pgjdbc 42.7.15
8 records Highest priority Priority HIGH 5 HIGH, 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-96877 SQL injection in pgjdbc simple query mode parameter quotingPriority HIGH 70
- TI-2026-96876 SQL injection in pgjdbc through misparsed quoted literalsPriority HIGH 70
- TI-2026-96880 pgjdbc does not enforce TLS for some ssl, service and DataSource settingsPriority HIGH 68
Timeline
- 2026-11-23 Threatist record created from CVE-2026-134847
- 2026-11-23 CISA SSVC decision points changed
References
More PostgreSQL vulnerabilities
- TI-2024-01491 pgjdbc SQL Injection via line comment generation CVSS 3.1CRITICAL 10.0
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2022-06097 Unchecked Class Instantiation when providing Plugin Classes CVSS 3.1CRITICAL 9.8
- TI-2026-96877 SQL injection in pgjdbc simple query mode parameter quoting CVSS 3.1HIGH 8.1
- TI-2026-96876 SQL injection in pgjdbc through misparsed quoted literals CVSS 3.1HIGH 8.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences