Technical impact
The psqlODBC driver has a stack buffer overflow in the parser for ODBC escape sequences. The parser writes argument offsets for {fn} escapes into a 16‑entry array without bounds checks and does not initialize it. A payload with more than 16 arguments or a long escape body causes the array to overflow, copying arbitrary data into the query or overwriting executable code on the stack. Because this occurs in the driver that executes application SQL, the overflow can corrupt memory inside the database process, potentially leading to denial of service or, depending on the execution context, arbitrary code execution.
Affected Systems
Affected is the PostgreSQL psqlODBC driver: all releases prior to 18.00.0006. No other products are listed. Organizations using the driver in any version older than 18.00.0006 should treat the deployment as vulnerable.
Risk and Exploitability
A CVSS score of 7.5 indicates high severity. The EPSS score is not reported, and the vulnerability is not currently listed in the CISA KEV catalog. Attackers can exploit the flaw by injecting SQL that contains ODBC escape sequences with an excessive argument count or long body into an application that forwards the text to the driver. If the application runs with elevated privileges or the database process is exposed to a remote network, a successful overflow could permit remote code execution or, at minimum, denial of service.