# CVE-2026-134847: pgjdbc stores a different number for a BigDecimal outside the binary numeric range

- Severity: Medium 6.5 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-23T16:59:18.281Z
- Modified: 2026-11-24T18:56:39.360Z
- Weaknesses: CWE-197, CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- org.postgresql:postgresql: from 42.3.0 before 42.7.15

## References

- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cjcw-9r77-4gwm> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-134847](https://www.cve.org/CVERecord?id=CVE-2026-134847), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-134847](https://nvd.nist.gov/vuln/detail/CVE-2026-134847), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-134847 · Whole record: https://cve.day/CVE-2026-134847.json · Rebuilt by cve.day 2026-11-25T22:59:52.673Z
