cve.bz

CVE-2026-120058 Integer Underflow (Wrap or Wraparound)

7.5 highEPSS 0.3%

High (7.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
psqlODBC sizes its row cache from the column count of a cursor's first result, but recomputes the column count from each later FETCH reply without checking that it matches. A server not trusted under current SSL settings can answer a later FETCH with more columns and make the driver write tuple records past the end of the heap allocation. A keyset reply with fewer columns than the key fields also underflows the unsigned field count. This is reachable with UseDeclareFetch enabled. Versions before psqlODBC 18.00.0006 are affected.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-191 Integer Underflow (Wrap or Wraparound)
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-120058 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-120058?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-120058?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-120058 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13psqlodbcno fix listedDEBIAN-CVE-2026-120058
Debian14psqlodbc1:18.00.0006-1DEBIAN-CVE-2026-120058
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morepsqlodbcno fix listedUBUNTU-CVE-2026-120058
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepsqlODBC18.00.0006-150000.3.14.1SUSE-SU-2026:5253-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6psqlODBC18.00.0006-150600.3.5.1SUSE-SU-2026:5191-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5psqlODBC18.00.0006-1.8.1SUSE-SU-2026:5192-1
openSUSELeap 16.0psqlODBC18.00.0006-bp160.1.1openSUSE-SU-2026:22261-1
openSUSETumbleweedpsqlODBC18.00.0006-1.1openSUSE-SU-2026:12472-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important rather than Critical because successful exploitation requires connecting to an untrusted or compromised database server, or an active network interceptor, alongside a specific cursor fetch configuration. Under default driver deployments, clients typically communicate with trusted backend infrastructure using enforced TLS verification, which impedes unauthorized servers from injecting malformed fetch responses. Furthermore, the issue is only reachable when cursor-based fetching (UseDeclareFetch) is explicitly enabled in the ODBC connection profile or data source configuration.

Red Hat's mitigation

--- CME Mitigation Guidance (2026-11-04) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to validate that subsequent FETCH reply column counts match the initial cursor result layout before writing into the row cache in psqlODBC: upgrade to psqlODBC 18.00.0006 (or the fixed Postgresql Odbc builds), which verify that subsequent FETCH replies match the column layout of the initial cursor result before updating the row cache, closing all 2 injection vectors (malformed FETCH reply returning more columns than the initial cursor result, malformed keyset reply returning fewer columns than expected key fields). Until patched, this is a concern on ODBC clients connecting with UseDeclareFetch enabled without strict server verification, so disable UseDeclareFetch in ODBC data source profiles and enforce strict server certificate verification using sslmode=verify-full or GSSAPI authentication. As a compensating measure, enable Address Space Layout Randomization to hinder attackers from reliably targeting executable memory structures following heap overflow, enable full RELRO and PIE to protect the Global Offset Table and impede overwriting function pointers after heap corruption, and enforce forward-edge Control Flow Integrity or Shadow Call Stack to prevent hijacked control flow from overwritten heap pointers. These controls limit blast radius and contain exploitation, but they do not fix the underlying heap buffer overflow and integer underflow defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1311 Input Size and Quantity Bounds Enforcement (high)

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql-odbcAffected
Red Hat Enterprise Linux 6postgresql-odbcAffected
Red Hat Enterprise Linux 7postgresql-odbcAffected
Red Hat Enterprise Linux 8postgresql-odbcAffected
Red Hat Enterprise Linux 9postgresql-odbcAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-120058.

References

Check your stackJSON