CVE-2026-120060

psqlODBC does not validate server-supplied counts and lengths

Published Nov 2, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
psqlODBC trusts counts and lengths in server data in three places. SQLBulkOperations uses a server-supplied row count in a size subtraction that can underflow. SQLStatistics iterates index keys using a server-supplied key count without bounding it to the fixed storage. Bytea octal decoding reads up to two bytes past the end of a truncated escape sequence. A server not trusted under current SSL settings can crash the client or make it read out of bounds. Versions before psqlODBC 18.00.0006 are affected.

Analysis

AI-generated

Technical impact

The vulnerability in psqlODBC arises because the driver trusts server-supplied counts and lengths in several functions, enabling integer underflows and out-of-bounds memory accesses. The underflow in SQLBulkOperations, the unbounded key count in SQLStatistics, and the unsafe octal decoding of bytea can cause the client process to crash or read memory beyond allocated buffers, resulting in a denial of service. The weakness maps to CWE-125 and CWE-191.

Affected Systems

PostgreSQL clients using the psqlODBC driver, versions before 18.00.0006, are impacted. This includes all installations of psqlODBC that have not applied the 18.00.0006 update or later. No specific distribution or platform constraints are noted beyond those of the listed vendor.

Risk and Exploitability

The CVSS score of 5.9 indicates a moderate severity, and the EPSS score is not available, suggesting limited publicly known exploitation. The vulnerability is client‑side, so a malicious or compromised PostgreSQL server that the client connects to can supply crafted data to trigger the defect. The control flow indicates that connecting to unauthenticated or weakly authenticated servers can expose the client to crashes; the suggested workaround of using sslmode=verify-full or GSS authentication mitigates the risk by ensuring the server identity is verified. The CVE is not listed in CISA’s KEV catalog, implying no known large‑scale exploitation yet.

Remediation

Vendor Solution

Upgrade to psqlODBC 18.00.0006 or later. The row count, the index-key count, and the octal escape length are checked before use.


Vendor Workaround

Connect only to servers authenticated with sslmode=verify-full or an equivalent GSS setting.


OpenCVE Recommended Actions

  • Upgrade psqlODBC to 18.00.0006 or later.
  • Configure all connections to use sslmode=verify-full or an equivalent GSS setting to enforce server certificate verification.
  • Limit client access to PostgreSQL servers that are trusted and monitor connection logs for anomalous or malformed responses.

Generated by OpenCVE AI on November 2, 2026 at 20:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql psqlodbc
Vendors & Products Postgresql
Postgresql psqlodbc
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description psqlODBC trusts counts and lengths in server data in three places. SQLBulkOperations uses a server-supplied row count in a size subtraction that can underflow. SQLStatistics iterates index keys using a server-supplied key count without bounding it to the fixed storage. Bytea octal decoding reads up to two bytes past the end of a truncated escape sequence. A server not trusted under current SSL settings can crash the client or make it read out of bounds. Versions before psqlODBC 18.00.0006 are affected.
Title psqlODBC does not validate server-supplied counts and lengths
Weaknesses CWE-125
CWE-191
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H'}

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 2, 2026, 7:43 PM
Reserved
Oct 30, 2026, 7:25 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 7:18 PM
Modified
Nov 2, 2026, 8:17 PM
Severity
Moderate
Public date
Nov 2, 2026, 7:09 PM