
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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.999999.99 instead of the intended tiny value — no error is raised, and any range check at the database level is bypassed.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).\d+e[+-]?\d{5,}) in input fields mapped to database numeric columns.BigDecimal or BigInteger exponentiation operations within the pgjdbc driver.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.
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.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."