Summary
psqlODBC (the PostgreSQL ODBC driver) does not verify that server replies match the queries it sent. Examples include a FETCH returning more rows than requested, rows with the wrong column count, extra results, an unexpected end of a COPY, transaction or connection, and malformed values in internal queries. The consequences are out-of-bounds writes, use-after-free, NULL pointer dereferences and infinite loops. Additional cases exist on Windows with MSDTC. This continues the fixes for CVE-2026-120058 and CVE-2026-120060.
CVSS 7.5 (AV:N/AC:H/PR:N/UI:R): the attack is network-based and needs no authentication, but has high complexity and requires user interaction. The attacker must control a hostile or compromised server, or sit on the network path of a connection that does not use sslmode=verify-full. The default setting is disable.
Demonstrated impacts are application crashes and heap corruption. Code execution has not been demonstrated, but the vector rates confidentiality, integrity and availability impact as high.
Who is affected
Organizations whose applications access PostgreSQL through the psqlODBC driver version 18.00.0006 or earlier, especially on Windows and over unencrypted or unverified connections.
What to do
- Inventory systems with psqlODBC installed and check the version (versions ≤ 18.00.0006 are affected).
- No fixed version is listed in the record. Check the official advisory (GHSA-98mx-57hv-xjpr and https://odbc.postgresql.org/changelog/) and install the fixed release as soon as it is available.
- Set sslmode=verify-full in DSNs and connection strings to prevent on-path attacks.
- Connect only to trusted PostgreSQL servers and monitor crashes of ODBC-based applications.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
References
- github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-98mx-57hv-xjpr vendor advisory
- odbc.postgresql.org/changelog/
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.