CVE-2026-134847: 
Java Analyse et atténuation de la vulnérabilité

Aperçu

CVE-2026-134847 is a numeric truncation and uncontrolled resource consumption vulnerability in pgjdbc, the PostgreSQL JDBC Driver. When sending BigDecimal values in binary format (the default mode), the driver truncates the weight and scale fields to 16 bits, causing the PostgreSQL server to silently store a different numeric value than what was submitted. For example, 999999.99e-262144 is stored as 999999.99, and 1e131072 is stored as 0. Additionally, the driver pre-computes 10^scale before transmission, meaning a value like 1e-200000000 can exhaust a thread for minutes. Affected versions are 42.3.0 through 42.7.14; version 42.7.15 fixes the issue. The CVSS v3.1 base score is 6.5 (Medium) (GitHub Advisory).

Détails techniques

The root cause is classified under CWE-197 (Numeric Truncation Error) and CWE-400 (Uncontrolled Resource Consumption). The PostgreSQL binary numeric wire format uses a 16-bit weight and a 14-bit scale field; pgjdbc's binary encoder did not validate or clamp BigDecimal values before encoding, silently truncating out-of-range weight and scale values. This means a BigDecimal with an extreme exponent is transmitted as a structurally valid but numerically different value, which the server accepts and stores without raising an error. A secondary issue is that the driver computes 10^scale eagerly before sending the query, so an attacker-supplied value with a very large negative exponent (e.g., 1e-200000000) triggers an enormous integer exponentiation on the driver thread, causing CPU exhaustion. The vulnerability is exploitable via setBigDecimal() or setObject() on any PreparedStatement when binary transfer is enabled (the default). A reproduction snippet is publicly available in the GitHub Security Advisory (GitHub Advisory).

Impact

Successful exploitation has two distinct consequences: data integrity corruption and denial of service. An unauthenticated attacker who can influence decimal input parsed by the application can cause the database to silently store an incorrect numeric value — for instance, a value that should fail a range check is stored as a large, valid number — undermining financial, scientific, or business logic that relies on accurate numeric storage. The availability impact arises from the driver's eager 10^scale computation: a single crafted request with an extreme exponent can monopolize a JDBC driver thread for minutes, degrading application throughput. There is no confidentiality impact, and lateral movement potential is limited, but data integrity compromise could have downstream consequences in applications performing numeric validation at the database layer (GitHub Advisory).

Exploitabilité

A proof-of-concept reproduction snippet is publicly available in the official GitHub Security Advisory, demonstrating the silent value substitution via a single PreparedStatement call. The vulnerability requires no authentication and no user interaction, and binary transfer mode is enabled by default, making exploitation straightforward for any attacker who can supply decimal input to an application using pgjdbc. The EPSS score is currently 0.0, and there is no evidence of in-the-wild exploitation or CISA KEV catalog inclusion at this time. NVD SSVC assessment classifies exploitation status as "poc" and the vulnerability as automatable (GitHub Advisory).

Étapes d’exploitation

  1. Identify target application: Locate a web application or service that accepts user-supplied decimal/numeric input and uses pgjdbc versions 42.3.0–42.7.14 to interact with a PostgreSQL database.
  2. Craft a truncation payload: Prepare a BigDecimal string with an exponent outside the 16-bit range, such as 999999.99e-262144. When the application parses this and passes it to setBigDecimal() or setObject() on a PreparedStatement, the driver encodes it in binary with truncated weight/scale.
  3. Submit the payload: Send the crafted decimal value through the application's input interface (e.g., a form field, API parameter, or file upload) that maps to a numeric database column.
  4. Observe silent data corruption: The PostgreSQL server receives the malformed binary numeric value and stores 999999.99 instead of the intended tiny value — no error is raised, and any range check at the database level is bypassed.
  5. Trigger CPU exhaustion (DoS variant): Submit a value with an extreme negative exponent such as 1e-200000000. The driver attempts to compute 10^200000000 before sending the query, consuming the JDBC thread for minutes and degrading application availability (GitHub Advisory).

Indicateurs de compromis

  • Application Logs: Requests containing numeric strings with very large or very small exponents (e.g., matching regex \d+e[+-]?\d{5,}) in input fields mapped to database numeric columns.
  • Database: Stored numeric values that are unexpectedly large or inconsistent with submitted input; audit log entries showing numeric values stored without corresponding application-level validation errors.
  • Performance/Thread Monitoring: JDBC driver threads stuck in long-running computations (minutes of CPU time per request); thread dumps showing time spent in BigDecimal or BigInteger exponentiation operations within the pgjdbc driver.
  • Network: Repeated requests with extreme-exponent decimal payloads from the same source IP, potentially indicating automated probing or DoS attempts.

Atténuation et solutions de contournement

Upgrade org.postgresql:postgresql (pgjdbc) to version 42.7.15 or later, which fixes both the truncation and CPU exhaustion issues (GitHub Advisory). If immediate patching is not feasible, consider disabling binary transfer mode for numeric types in the JDBC connection configuration (e.g., setting binaryTransfer=false or binaryTransferEnable to exclude the numeric type), which forces text-mode encoding and avoids the vulnerable code path. Additionally, restrict network access to the PostgreSQL JDBC Driver to trusted clients only, and implement application-level validation to reject BigDecimal values with exponents outside a safe range before they reach the driver.

Réactions de la communauté

The vulnerability was disclosed via the official pgjdbc GitHub Security Advisory on November 23, 2026, published by maintainer sehrope. The advisory notes that the CVE was credited to Anthropic, as reflected in a related GitHub commit. No significant independent researcher commentary or broad media coverage has been identified at this time beyond standard vulnerability aggregator coverage.

Ressources supplémentaires

État de correction de la distribution Linux

Corrigez la disponibilité entre les grandes distributions Linux et leurs versions.

Debian

Fixé

bookworm

libpgjava

Affecté

sid

libpgjava: 42.7.15-1

Fixé

trixie

libpgjava

Affecté

Ubuntu

Inconnu

bionic (esm-apps)

libpgjava

Inconnu

devel

libpgjava

Inconnu

focal (esm-apps)

libpgjava

Inconnu

jammy

libpgjava

Inconnu

jammy (esm-apps)

libpgjava

Inconnu

noble

libpgjava

Inconnu

noble (esm-apps)

libpgjava

Inconnu

resolute

libpgjava

Inconnu

RHEL / CentOS

Affecté

RHEL 9

Non affecté

RHEL 10

Non affecté

Source: Ce rapport a été généré à l’aide de l’IA

Connexe Java Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-134844HIGH7.5
  • Java logoJava
  • flyway
NonOuiNov 23, 2026
CVE-2026-134848HIGH7.4
  • Java logoJava
  • org.postgresql:postgresql
NonOuiNov 23, 2026
CVE-2026-134845HIGH7.4
  • Java logoJava
  • flyway
NonOuiNov 23, 2026
CVE-2026-134847MEDIUM6.5
  • Java logoJava
  • flyway
NonOuiNov 23, 2026
CVE-2026-134846MEDIUM6.5
  • Java logoJava
  • keycloak-26.8
NonOuiNov 23, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités