CVE-2026-134847: 
Java Análisis y mitigación de vulnerabilidades

Vista general

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).

Detalles técnicos

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).

Impacto

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).

Explotabilidad

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).

Pasos de explotación

  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).

Indicadores de compromiso

  • 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.

Mitigación y soluciones alternativas

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.

Reacciones de la comunidad

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.

Recursos adicionales

Estado de corrección de la distribución Linux

Arreglar la disponibilidad en las principales distribuciones de Linux y sus lanzamientos.

Debian

Arreglado

bookworm

libpgjava

Afectados

sid

libpgjava: 42.7.15-1

Arreglado

trixie

libpgjava

Afectados

Ubuntu

Desconocido

bionic (esm-apps)

libpgjava

Desconocido

devel

libpgjava

Desconocido

focal (esm-apps)

libpgjava

Desconocido

jammy

libpgjava

Desconocido

jammy (esm-apps)

libpgjava

Desconocido

noble

libpgjava

Desconocido

noble (esm-apps)

libpgjava

Desconocido

resolute

libpgjava

Desconocido

RHEL / CentOS

Afectados

RHEL 9

No afectado

RHEL 10

No afectado

Fuente: Este informe se generó usando IA

Relacionado Java Vulnerabilidades:

CVE ID

Gravedad

Puntuación

Tecnologías

Nombre del componente

Exploit CISA KEV

Tiene solución

Fecha de publicación

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

Evaluación gratuita de vulnerabilidades

Haz un benchmark de tu postura de seguridad en la nube

Evalúa tus prácticas de seguridad en la nube en 9 dominios de seguridad para evaluar tu nivel de riesgo e identificar brechas en tus defensas.

Evaluación de solicitudes

Recursos adicionales de Wiz

Obtén una demostración personalizada

¿Listo para ver a Wiz en acción?

"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
David EstlickCISO
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
Adam FletcherJefe de Seguridad
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."
Greg PoniatowskiJefe de Gestión de Amenazas y Vulnerabilidades