CVE-2026-120058: psqlODBC row cache overflow when a later FETCH changes the column count
Vulnerability summary
CVE-2026-120058 is a high (CVSS 7.5) Integer Underflow (Wrap or Wraparound) vulnerability in postgresql psqlodbc. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 35.7% of scored vulnerabilities.
Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 8 · Related 5Timeline
- 02-11-2026PublishedVulnerability first disclosed.
- 02-11-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- NVDNIST7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
36%
Versus all other CVEs
30-day change
Increase +0.14 pp
From 0.26% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-191Integer Underflow (Wrap or Wraparound)The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- psqlodbcAll versions (No fix recorded) | < 1:18.00.0006-1
Postgresql1 product
- psqlodbc< 18.00.0006
Ubuntu1 product
- psqlodbcAll versions (No fix recorded)
3 vendors · 3 products
References
4 links- github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-6rmx-9q62-4w6mVendor AdvisoryREPORT