{"id":"CVE-2026-120061","aliases":[],"cve":{"records":[{"id":"CVE-2026-120061","source":"PostgreSQL","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-30T19:25:18.919Z","published":"2026-11-02T19:09:11.590Z","modified":"2026-11-02T19:35:04.484Z"}],"publishers":[{"name":"PostgreSQL","role":"CNA","organizationId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","modified":"2026-11-02T19:09:11.590Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-02T19:35:04.484Z"}],"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-hfm6-qfx8-v4xq","tags":["vendor-advisory"],"source":"PostgreSQL"}],"weaknesses":[{"id":"CWE-121","description":"CWE-121 Stack-based Buffer Overflow","source":"PostgreSQL"},{"id":"CWE-193","description":"CWE-193 Off-by-one Error","source":"PostgreSQL"},{"id":"CWE-457","description":"CWE-457 Use of Uninitialized Variable","source":"PostgreSQL"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-02T19:34:51.857010Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"title":"psqlODBC ODBC escape parser stack buffer overflow","titleSource":"PostgreSQL","descriptionSource":"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.","score":7.5,"severity":"high","published":"2026-11-02T19:09:11.590Z","modified":"2026-11-02T19:35:04.484Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"PostgreSQL","name":"psqlODBC","platforms":[],"versions":[{"version":"0","status":"affected","lessThan":"18.00.0006","versionType":"custom"}],"defaultStatus":"unaffected","cpes":[],"source":"PostgreSQL","url":"https://www.cve.org/CVERecord?id=CVE-2026-120061"}],"remediation":[{"text":"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.","source":"PostgreSQL","url":"https://www.cve.org/CVERecord?id=CVE-2026-120061"},{"text":"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.","source":"PostgreSQL","url":"https://www.cve.org/CVERecord?id=CVE-2026-120061"}],"references":["https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-hfm6-qfx8-v4xq"],"sources":[{"name":"CVE","id":"CVE-2026-120061","modified":"2026-11-02T19:35:04.484Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-120061"}],"assessments":[{"source":"PostgreSQL","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5}],"sourceAffected":[],"observedAt":"2026-11-02T19:37:56.012Z","kev":{"status":"not-listed","checkedAt":"2026-11-15T02:25:31.038Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-02T19:40:38.307Z","attemptedAt":"2026-11-02T19:40:38.307Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-02T19:40:38.205Z","attemptedAt":"2026-11-02T19:40:38.205Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-02T19:40:37.769Z","attemptedAt":"2026-11-02T19:40:37.769Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-02T19:40:38.130Z","attemptedAt":"2026-11-02T19:40:38.130Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-120061","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120061","modified":"2026-11-02T19:34:23.993","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-11-02T19:40:38.307Z"}],"aiSummary":{"text":"psqlODBC versions before 18.00.0006 have a stack buffer overflow weakness in the ODBC escape parser, potentially causing memory corruption if untrusted SQL text is forwarded to the driver. The parser does not initialize or bound a fixed array, and certain escape sequences can write past a buffer. An application that passes untrusted SQL text to the driver may be exposed.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-02T19:31:12.118Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-120061"}]}}