Skip to main content

PostgreSQL JDBC Driver CVE-2026-134847

| EUVDEUVD-2026-133252 MEDIUM
Numeric Truncation Error (CWE-197)
2026-11-23 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
6.5
CVSS 3.1 · Vendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted decimal to application input
  2. Delivery
    Value passed to setBigDecimal/setObject (binary default)
  3. Exploit
    Driver truncates weight/scale to 16 bits or precomputes 10^scale
  4. Execution
    Altered value stored silently or worker thread spins for minutes
  5. Impact
    Range-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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pgjdbc 42.3.0 <42.7.15

Affected Packages

euvd pgjdbc fix: 42.7.15

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

Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).

CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Nov 23, 2026 - 18:02 EUVD
CVE Published
Nov 23, 2026 - 17:17 cve.org
MEDIUM 6.5

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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
High
standard JDBC driver for nearly all Java-to-PostgreSQL applications
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

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

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

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

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy