CVE-2026-134847: 
Java Análise e mitigação de vulnerabilidades

Visão geral

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

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

Explorabilidade

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

Etapas de exploração

  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 compromisso

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

Mitigação e soluções 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.

Reações da comunidade

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 adicionais

Status correto da distribuição Linux

Corrija a disponibilidade entre as principais distribuições Linux e seus lançamentos.

Debian

Fixo

bookworm

libpgjava

Afetado

sid

libpgjava: 42.7.15-1

Fixo

trixie

libpgjava

Afetado

Ubuntu

Desconhecido

bionic (esm-apps)

libpgjava

Desconhecido

devel

libpgjava

Desconhecido

focal (esm-apps)

libpgjava

Desconhecido

jammy

libpgjava

Desconhecido

jammy (esm-apps)

libpgjava

Desconhecido

noble

libpgjava

Desconhecido

noble (esm-apps)

libpgjava

Desconhecido

resolute

libpgjava

Desconhecido

RHEL / CentOS

Afetado

RHEL 9

Não Afetado

RHEL 10

Não Afetado

Origem: Este relatório foi gerado usando IA

Relacionado Java Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploit CISA KEV

Tem correção

Data de publicação

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

Avaliação Gratuita de Vulnerabilidades

Avalie a sua postura de segurança na nuvem

Avalie suas práticas de segurança em nuvem em 9 domínios de segurança para avaliar seu nível de risco e identificar lacunas em suas defesas.

Avaliação de solicitação

Recursos adicionais da Wiz

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades