CVE-2026-136503
7.5HighPublished Nov 25, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-415, CWE-416, CWE-787
What an attacker gets
A malicious database server or network attacker can trigger memory corruption or crashes in applications using the psqlODBC driver. This requires the application to connect to a compromised server or have an attacker on the network path.
Root cause
The driver suffers from multiple memory management flaws including double-frees, use-after-free, and buffer overflows during transaction cleanup and data fetching.
Affected versions
psqlODBC versions up to and including 18.00.0006
CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to psqlODBC version 18.00.0007 or later. As an immediate mitigation, ensure all connections use sslmode=verify-full to prevent man-in-the-middle attacks.
$ sudo apt-get update && sudo apt-get install --only-upgrade psqlodbcAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
psqlODBC frees memory that is still in use, frees it twice, or writes outside an application buffer in these cases: - The clean-up the driver runs at commit and rollback sends queries of its own, and the reply to one of them can start the clean-up again while it is running. The nested run frees the rollback log, or the list of cursors and prepared statements to close, and the outer run uses and frees it again. - The callback through which libpq delivers notices could run that clean-up, and close the connection, while libpq was still using the connection. - Freeing a statement whose result holds several cursors (FetchRefcursors=1, or UseDeclareFetch=1) used the freed first result while the later cursors were closed. - With UseDeclareFetch=1, after a rollback closed an updatable cursor, rows added or deleted through it were counted but not stored, so freeing the statement freed uninitialised pointers, and adding a row wrote past the keyset. - After a multi-row fetch failed on a row other than the first of its rowset, SQLGetData() wrote at an offset past the buffer the application passed. - SQLProcedureColumns() freed the result of its catalog query twice when the query failed. - In a process named sqlservr (SQL Server linked servers), a server version below 8.4 made the statement parser free a buffer twice. - A failed SQLPutData in the middle of a SQLSetPos() or SQLBulkOperations() data-at-execution sequence left the whole operation pending, with the internal statement still allocated and autocommit silently off, so later statements were rolled back at disconnect. The next positioned update ran the stale callback against a statement that was never executed and dereferenced NULL. Most of these can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable). A database user who can make a statement fail, or who controls the contents of a row the application reads, can trigger the UseDeclareFetch=1 and SQLGetData() cases against an honest server. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1365097.5HighA malicious or compromised database server can corrupt memory or crash the application. This requires a connection that does not use sslmode=verify-full.
- CVE-2026-1365127.5HighA malicious database server or network attacker can trigger memory corruption, leading to arbitrary code execution. This occurs when the driver writes data beyond the allocated buffer size during fetch operations.
- CVE-2026-1365157.5HighAuthenticated attackers can corrupt the application heap and cause crashes by supplying malicious SQL statements to keyset-driven or dynamic cursors. While code execution is not confirmed, the memory corruption could potentially be leveraged for further exploitation.
- CVE-2026-1365017.1HighAuthenticated attackers can redirect positioned database operations to arbitrary tables or trigger buffer overflows. This allows them to execute code or manipulate data under the victim's database role.
- CVE-2026-1365028.1HighRemote attackers can execute arbitrary SQL commands with the application's database privileges. This requires the attacker to control input used in SQL statements or parameter values.
- CVE-2026-1365057.5HighAuthenticated attackers can trigger heap corruption or memory errors, potentially leading to crashes or arbitrary code execution. This requires an application using the driver to process malicious input or database results.