CVE-2026-134847
6.5medium
pgjdbc stores a different number for a BigDecimal outside the binary numeric range
- Severity
- 6.5medium CVSS:3.1 by PostgreSQL
- Exploit likelihood
- 0.58% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| org.postgresql:postgresql | from 42.3.0 before 42.7.15 | CVE List |
Classification
References
| https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cjcw-9r77-4gwm | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-134847 changed 2026-11-23 | CVE Terms of Use |
| NVD | CVE-2026-134847 changed 2026-11-24 | Public domain |