# CVE-2026-120058: psqlODBC row cache overflow when a later FETCH changes the column count

- Severity: High 7.5 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-11-02T19:09:09.747Z
- Modified: 2026-11-02T20:17:38.920Z
- Weaknesses: CWE-191, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

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

(As written by CVE List.)

## Affected

- PostgreSQL psqlODBC: before 18.00.0006

## References

- <https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-6rmx-9q62-4w6m> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-120058](https://www.cve.org/CVERecord?id=CVE-2026-120058), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-120058](https://nvd.nist.gov/vuln/detail/CVE-2026-120058), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-120058 · Whole record: https://cve.day/CVE-2026-120058.json · Rebuilt by cve.day 2026-11-25T22:59:48.216Z
