{"id":"CVE-2026-120058","aliases":["CVE-2026-120058"],"related":[],"kind":"vulnerability","state":"published","title":"psqlODBC row cache overflow when a later FETCH changes the column count","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-02T19:09:09.747Z","modified":"2026-11-02T20:17:38.920Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-191","CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"18.00.0006","status":"affected"}],"vendor":"PostgreSQL","product":"psqlODBC","repo":"https://github.com/postgresql-interfaces/psqlodbc","source":"cvelist"}],"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-6rmx-9q62-4w6m","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-02T19:33:38.487Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120058","url":"https://www.cve.org/CVERecord?id=CVE-2026-120058","licence":"CVE Terms of Use","modified":"2026-11-02T19:33:49.913Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120058","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120058","licence":"Public domain","modified":"2026-11-02T20:17:38.920Z"}],"updatedAt":"2026-11-25T22:59:48.216Z","epss":{"score":0.00394,"percentile":0.35765,"date":"2026-12-01T12:00:22.000Z"}}