{"id":"CVE-2026-120061","published":"2026-11-02T19:09:11Z","modified":"2026-11-02T19:35:04Z","title":"psqlODBC ODBC escape parser stack buffer overflow","vendor":"PostgreSQL","product":"psqlODBC","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00342,"percentile":0.28454,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"},{"id":"CWE-193","name":"Off-by-one Error"},{"id":"CWE-457","name":"Use of Uninitialized Variable"}],"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-hfm6-qfx8-v4xq","tags":["vendor-advisory"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":5.69},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"postgresql","affectedVersions":[{"vendor":"PostgreSQL","product":"psqlODBC","versions":["< 18.00.0006"]}],"solutions":{"items":["Upgrade to psqlODBC 18.00.0006 or later. The argument offset array is initialized and bounded, and the escape body copy reserves room for the terminator."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Do not pass SQL text from untrusted sources to the driver, or reject text containing ODBC escape sequences ({fn ...}, {d ...}, {t ...}, {ts ...}, {escape ...}) before it reaches the driver."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-02T19:34:51.857010Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-115374","exploited":false,"provenance":"source"}}