---
id: CVE-2026-134847
title: >-
  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
summary: >-
  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
  i…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L'
cwe:
  - CWE-197
  - CWE-400
vendor: pgjdbc
product: 'org.postgresql:postgresql'
affected:
  - 'org.postgresql:postgresql >= 42.3.0 < 42.7.15'
published: '2026-11-23'
updated: '2026-11-24'
sourceUpdated: '2026-11-24T18:56:39.360'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-134847'
references:
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cjcw-9r77-4gwm'
    label: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cjcw-9r77-4gwm'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-11-23T19:27:51.233207Z'
ingestedAt: '2026-11-23T20:35:33.368Z'
epss: 0.00351
epssPercentile: 0.2906
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
