# CVE-2026-120061: psqlODBC ODBC escape parser stack buffer overflow

- Severity: High 7.5 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/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.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-11-02T19:09:11.590Z
- Modified: 2026-11-02T20:17:39.313Z
- Weaknesses: CWE-121, CWE-193, CWE-457
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## Description

The psqlODBC parser for ODBC escape sequences in application SQL text writes the argument offsets of a {fn} escape into a fixed 16-entry stack array without a bound and does not initialize the array. An escape with too many arguments overflows the stack, and a reference to an unsupplied argument copies arbitrary bytes into the query. The copy of a {d}, {t}, {ts}, or {escape} body also writes one byte past a 128-byte stack buffer. An application that forwards untrusted SQL text to the driver exposes its process to memory corruption. 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-hfm6-qfx8-v4xq> (vendor-advisory)

## Sources

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

---

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