Technical impact
The psqlODBC driver accepts a column number or row index supplied by the application and uses it directly as an array index without validation. When a column number greater than 32767 or a negative descriptor count is passed, or when an excessively large column number is used with SQLColAttribute, the driver ends up indexing a negative or out‑of‑bounds array element. This allows unvalidated reads and writes that can corrupt memory or expose sensitive data, potentially crashing the application or enabling an attacker to inject malicious code. The weakness arises from improper validation of array indexes (CWE‑129), integer wraparound (CWE‑190), and may also lead to buffer over‑reads or writes due to unchecked descriptor values (CWE‑787).
Affected Systems
The vulnerability affects the psqlODBC driver supplied by PostgreSQL. All installations using versions prior to 18.00.0006 are impacted; newer releases have added bounds checks and reject invalid column numbers or row indexes. The issue is tied to the PostgreSQL driver for ODBC, commonly used by applications interfacing with PostgreSQL databases.
Risk and Exploitability
The base CVSS score of 7.5 classifies the flaw as high severity. Exploit probability data (EPSS) is less than 1%, and the vulnerability is not listed in the CISA KEV catalog, indicating no known widespread, actively exploited instances as of the last update. The likely attack vector is local to the process that loads the driver; however, if the driver is invoked by software that accepts untrusted user input for column or row numbers, a remote attacker could supply malicious values and trigger the out‑of‑bounds access. In either scenario, the lack of bounds checking poses a significant risk to confidentiality, integrity, and availability of the affected application.