Technical impact
A buffer overrun occurs when psqlODBC quotes a schema or table name into a fixed 128‑byte stack buffer. If the identifier is longer, the driver writes a double quote and a NUL character past the buffer boundary, corrupting the stack. This memory corruption could enable an attacker controlling untrusted SQL text to compromise the process or gain privileges. This flaw is a classic stack buffer overflow (CWE‑121).
Affected Systems
PostgreSQL psqlODBC prior to 18.00.0006 is affected. Any application that uses the ODBC driver to send SQL text containing long schema or table names, especially those sourced from untrusted inputs, is vulnerable. No specific operating system or platform is mentioned, so the impact applies to all environments where the driver is installed.
Risk and Exploitability
The CVSS score is 5.9, indicating moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog, suggesting it is not actively exploited in the wild yet. Likely attack vectors involve an application forwarding malicious SQL from an external source to the driver; if the attacker supplies a long schema or table name, the stack corruption can be triggered. Because the overflow writes only a few bytes, exploitation would require additional techniques to turn the corruption into code execution, so the risk is moderate but non‑negligible.