# CVE-2026-136506: SQL injection through names the driver puts into its own queries

Status: published. Published: 2026-11-25. Updated: 2026-11-25.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- PostgreSQL / psqlODBC (psqlodbc): ≥ 0; ≤ 18.00.0006 (affected, custom). Source: CNA: PostgreSQL

## Severity and prioritization

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H; source: CNA: PostgreSQL

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-89, CWE-706

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-63r4-gjcj-f69v (CNA: PostgreSQL; vendor-advisory)

- https://odbc.postgresql.org/changelog/ (CNA: PostgreSQL; release-notes)

- https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-63r4-gjcj-f69v (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

- https://odbc.postgresql.org/changelog/ (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

## Provenance

- CNA: PostgreSQL: https://www.cve.org/CVERecord?id=CVE-2026-136506; retrieved 2026-11-25; source updated 2026-11-25

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-136506; retrieved 2026-11-26; source updated 2026-11-25

Revision: 1defd01be0be9876d9d3616f66ab7d52f8dff90f76edbf4d1add5ebc2d727d98

Canonical: https://y2.dev/cve/CVE-2026-136506

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.