CVE-2026-120063 psqlODBC stack buffer overflow when quoting long schema and table names
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.
Upgrade path
9 packages: 2 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux postgresql-odbc(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| debian/psqlodbc(Debian 12) | = 1:13.02.0000-2; = 1:15.00.0000-1; = 1:16.00.0000-1; = 1:16.00.0005-1 +15 more | No fix listed | No fix yet |
| debian/psqlodbc(Debian 13) | = 1:17.00.0004-2; = 1:17.00.0005-1; = 1:17.00.0006-1; = 1:17.00.0006-2 +10 more | No fix listed | No fix yet |
| ubuntu/psqlodbc(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/psqlodbc(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/psqlodbc(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/psqlodbc(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/psqlodbc(Debian 14) | < 1:18.00.0006-1; = 1:17.00.0004-2; = 1:17.00.0005-1; = 1:17.00.0006-1 +9 more | 1:18.00.0006-1 | Fixed |
| postgresql psqlODBC | < 18.00.0006 | 18.00.0006 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql psqlODBC | < 18.00.0006 | 18.00.0006 |
| debian/psqlodbc(Debian:12) | All versions | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:13.02.0000-2 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:15.00.0000-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:16.00.0000-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:16.00.0005-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:17.00.0004-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:17.00.0004-2 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:17.00.0005-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:17.00.0006-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:17.00.0006-2 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:17.00.0007-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:17.00.0008-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:18.00.0001-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:18.00.0002-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:18.00.0003-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:18.00.0003-2 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:18.00.0004-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:18.00.0005-1 | No fix listed |
| debian/psqlodbc(Debian:12) | = 1:18.00.0006-1 | No fix listed |
| debian/psqlodbc(Debian:13) | All versions | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:17.00.0004-2 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:17.00.0005-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:17.00.0006-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:17.00.0006-2 | No fix listed |
Show 27 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/psqlodbc(Debian:13) | = 1:17.00.0007-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:17.00.0008-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:18.00.0001-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:18.00.0002-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:18.00.0003-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:18.00.0003-2 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:18.00.0004-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:18.00.0005-1 | No fix listed |
| debian/psqlodbc(Debian:13) | = 1:18.00.0006-1 | No fix listed |
| debian/psqlodbc(Debian:14) | < 1:18.00.0006-1 | 1:18.00.0006-1 |
| debian/psqlodbc(Debian:14) | = 1:17.00.0004-2 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:17.00.0005-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:17.00.0006-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:17.00.0006-2 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:17.00.0007-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:17.00.0008-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:18.00.0001-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:18.00.0002-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:18.00.0003-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:18.00.0003-2 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:18.00.0004-1 | No fix listed |
| debian/psqlodbc(Debian:14) | = 1:18.00.0005-1 | No fix listed |
| ubuntu/psqlodbc(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/psqlodbc(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/psqlodbc(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/psqlodbc(Ubuntu:26.10) | All versions | No fix listed |
| azure linux postgresql-odbc(Azure Linux:4.0) | All versions | No fix listed |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2565353 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com vendor-advisory
- Debian Security Tracker CVE-2026-120063 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-115376 third-party-advisory