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...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:14.04:LTSlibpgjava |
All versions→ Not listed |
Not listed |
| Ubuntu:16.04:LTSlibpgjava |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSlibpgjava |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSlibpgjava |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibpgjava |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibpgjava |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libpgjava |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibpgjava |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report github.com