{"id":"CVE-2026-120061","title":"psqlODBC ODBC escape parser stack buffer overflow","summary":"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 ove…","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","cvssSource":"cna","cwe":["CWE-121","CWE-193","CWE-457"],"vendor":"PostgreSQL","product":"psqlODBC","affected":["psqlODBC < 18.00.0006"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-02T19:34:51.857010Z"},"published":"2026-11-02","updated":"2026-11-02","sourceUpdated":"2026-11-02T19:35:04.484Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-120061","references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-hfm6-qfx8-v4xq"}],"tags":["cve.org"],"epss":0.00342,"epssPercentile":0.27875,"ingestedAt":"2026-11-05T19:30:42.801Z","slug":"CVE-2026-120061","body":"## Overview\n\nThe 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.\n\n## Affected\n\n- `psqlODBC < 18.00.0006`\n\n## Remediation\n\nUpgrade 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.\n\n### Workarounds\n\nDo 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.","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}