CVE-2026-136506
Last modified
CVE-2026-136506 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification: - the database name in SQLForeignKeys(); - the current schema name in catalog functions; - the table name in the currtid2() call that re-reads rows of updatable cursors; - column names in the inserts and updates of SQLSetPos() and SQLBulkOperations(); - cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1); - parameter names (SQL_DESC_NAME) in procedure calls; - the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path. The column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles " in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use.
Description
psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification: - the database name in SQLForeignKeys(); - the current schema name in catalog functions; - the table name in the currtid2() call that re-reads rows of updatable cursors; - column names in the inserts and updates of SQLSetPos() and SQLBulkOperations(); - cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1); - parameter names (SQL_DESC_NAME) in procedure calls; - the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path. The column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles " in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use. The column names that SQLSetPos() and SQLBulkOperations() put into the SET list of their UPDATE and into the column list of their SQL_ADD INSERT come from the catalog and were not covered by it, so a driver patched to 18.00.0006 is still affected by this one. A database user who can create a database, schema, table, column or operator with a crafted name, or an end user who supplies a cursor or parameter name to the application, can run SQL with the rights of the application's database role. Versions up to and including psqlODBC 18.00.0006 are affected.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| PostgreSQL | psqlODBC | <= 18.00.0006 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-136506?
How severe is CVE-2026-136506?
How do I fix CVE-2026-136506?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-136500To escape a bound parameter, or a name passed to a catalog f…8.1
- CVE-2026-136501To build positioned updates and to describe columns, psqlODB…7.1
- CVE-2026-136502psqlODBC scans statement text itself to substitute parameter…8.1
- CVE-2026-136503psqlODBC frees memory that is still in use, frees it twice, …7.5
- CVE-2026-136504With the driver's debug log (MyLog) turned on, two paths wri…5
- CVE-2026-136505psqlODBC uses sizes and counts without checking their range,…7.5
- CVE-2026-136507psqlODBC parsed and built connection strings in ways that le…8.1
- CVE-2026-136508On Windows, when a connection takes part in a distributed tr…6.8
- CVE-2026-136509psqlODBC did not check that a server reply matches the query…7.5
- CVE-2026-136510A parameter-array execution that fails part-way leaves the r…4.8
- CVE-2026-136511psqlODBC mapped an SSLmode value in a connection string that…6.8
- CVE-2026-136512With SQL_C_DEFAULT, the C type of a bound column or paramete…7.5
Are you affected by CVE-2026-136506?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
