Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted decimal to application input
-
DeliveryValue passed to setBigDecimal/setObject (binary default)
-
ExploitDriver truncates weight/scale to 16 bits or precomputes 10^scale
-
ExecutionAltered value stored silently or worker thread spins for minutes
-
ImpactRange-check bypass or CPU exhaustion
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Numeric truncation prevention
|
| Exploitation Conditions | Requires an application that accepts an attacker-influenced decimal value and sends it to PostgreSQL via setBigDecimal() or setObject() on an affected pgjdbc version (42.3.0 through 42.7.14) with binary transfer enabled - which is the default, so no special configuration is needed to reach the vulnerable path. Exploitation is further limited by the application layer: the attacker must control a decimal input that reaches a numeric column (for the storage-corruption variant) or control the scale/exponent of a parsed BigDecimal (for the CPU-exhaustion variant), and impact depends on whether the application relies on range checks before storage. No PostgreSQL authentication of the attacker is required when the application itself exposes such an input path; updating to 42.7.15 is the fix. |
| Impact | The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L, base 6.5) marks this as a network-reachable, no-authentication, low-complexity flaw with low integrity and low availability impact and no confidentiality impact - consistent with the advisory, which describes silent data corruption plus a CPU-exhaustion path, not data exposure. The vuln.today decision label is 'this_month' (a priority but not act_now/emergency), and there is no CISA KEV listing and no EPSS score in the input, so there is no signal of active or widespread exploitation; this reads as a real-but-moderate priority rather than an emergency. A PoC reference (the Java snippet in the GHSA advisory) exists but is not verified as working exploit code, and it only demonstrates the behavior rather than a full attack. Real-world risk is highly application-dependent: the driver sits behind application code, so exploitation requires an app that parses attacker-supplied decimals and persists them - something AV:N/PR:N cannot confirm by itself, so verify against your own data flow. Note also that the Tags include 'Information Disclosure', which contradicts C:N and the advisory's integrity/DoS mechanism. |
| Exploit ScenarioDerived | An application accepts a user-supplied decimal (e.g. a monetary amount) and stores it in a PostgreSQL numeric column via setBigDecimal()/setObject() over the default binary transfer. An attacker submits a value like 999999.99e-262144 that passes the application's range check as tiny but is stored as 999999.99, or submits 1e-200000000 to tie up a worker thread for minutes. A public PoC reference exists in the GHSA advisory demonstrating the storage-corruption case; it is not verified as working exploit code beyond the proof-of-concept. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
Numeric truncation in the PostgreSQL JDBC Driver (pgjdbc) versions 42.3.0 through 42.7.14 allows remote attackers to silently corrupt stored decimal values or cause CPU exhaustion via the default binary transfer mechanism. Applications that pass attacker-influenced BigDecimal inputs to setBigDecimal() or setObject() can unintentionally store altered numbers that bypass range checks, or consume significant CPU resources when parsing values with extreme scales. A public PoC reference exists; it is not verified as working exploit code. The flaw carries a CVSS score of 6.5 reflecting low integrity and availability impacts with no confidentiality impact.
RemediationAI
Upgrade the PostgreSQL JDBC Driver to version 42.7.15, which resolves the numeric truncation and CPU exhaustion issues. As referenced in the vendor advisory (https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cjcw-9r77-4gwm), this is the definitive fix for the affected 42.3.0 through 42.7.14 versions. If immediate upgrading is not feasible, a viable workaround is to disable binary transfer for numeric types by setting the connection property binaryTransfer to false or tightening binaryTransferEnable, acknowledging that this may negatively impact performance for other data types. Alternatively, applications should strictly validate and bounds-check BigDecimal inputs before passing them to setBigDecimal() or setObject() to prevent extreme scales or values outside the binary numeric range from reaching the driver.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The PostgreSQL JDBC Driver implements the client-side protocol for Java applications connecting to PostgreSQL. When sending a BigDecimal in binary format, which is the default behavior, the driver maps the value to PostgreSQL's binary numeric representation. This format restricts the weight to 16 bits and the scale to 14 bits, but the driver failed to validate these boundaries before serialization. This leads to a CWE-197 (Numeric Truncation Error), where values are silently truncated (e.g., 999999.99e-262144 becomes 999999.99, and 1e131072 becomes 0), allowing large numbers to bypass application-level range checks. Additionally, the driver calculates 10 to the power of the scale before transmission, introducing a CWE-400 (Uncontrolled Resource Consumption) issue where extreme negative exponents (e.g., 1e-200000000) cause excessive CPU usage, effectively hanging the thread for minutes.
Know when PostgreSQL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Attacker-supplied decimals reach the driver through an app over the network (AV:N/PR:N/AC:L); silent value corruption gives I:L and the 10^scale CPU burn gives A:L, with no confidentiality impact.
Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).
CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-133252
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB