Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-136502

published high CVSS 3.1 · 8.1

SQL injection and redirected writes because the driver reads SQL text differently from the server

Published
25 Nov 2026, 22:25:46 UTC
Updated
25 Nov 2026, 22:25:46 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
PostgreSQL — psqlodbcpsqlODBC · 0 through 18.00.0006 · Other versions: unaffected Affected Not stated PostgreSQL
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment
SUSE / openSUSE openSUSE-Tumbleweed psqlODBCaarch64 Advisory build 18.00.0007-1.1 OPENSUSE-SU-2026:12716-1
SUSE / openSUSE openSUSE-Tumbleweed psqlODBCppc64le Advisory build 18.00.0007-1.1 OPENSUSE-SU-2026:12716-1
SUSE / openSUSE openSUSE-Tumbleweed psqlODBCs390x Advisory build 18.00.0007-1.1 OPENSUSE-SU-2026:12716-1
SUSE / openSUSE openSUSE-Tumbleweed psqlODBCx86_64 Advisory build 18.00.0007-1.1 OPENSUSE-SU-2026:12716-1

Description

psqlODBC scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positioned write went to another table: - An escape string constant written e'…' in lower case was not recognised as one, and '…' after a keyword ending in E, as in LIKE'…', was taken for one. - A } inside a quoted literal ended an ODBC {d …}, {t …}, {ts …} or {escape …} sequence. - Dollar-quote tags containing _ were not recognised, and an identifier starting with _ followed by $, such as _$$, was taken for the start of a dollar quote, so a parameter marker inside a literal was substituted. - A trailing -- comment in one statement of a batched parameter array swallowed the next statement. - Comments, literals longer than 255 bytes and escape strings were misread when the driver located the FROM and WHERE clauses of a query for an updatable cursor, and the text copied into the cursor's own queries could include SQL from inside a literal. - A table name containing $ was cut at the $, and a quoted table name starting with , or ; ended the table list, so positioned updates, inserts and deletes went to another table. - An integer parameter with an embedded NUL byte cut the query short. - /*/ was taken for a comment that opens and closes, while the server reads it as one that only opens. - ConnSettings was split at every semicolon, including one inside a quoted literal, so an application that puts an end user's value into a SET command there ran the rest of the value as SQL at connect time. An end user who controls text the application puts into a statement, or a parameter value, can run SQL with the rights of the application's database role. A database user who can create a table with a crafted name can redirect another user's positioned writes to a table of their choosing. Versions up to and including psqlODBC 18.00.0006 are affected.

en · PostgreSQL · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.1 / 10
Severity
high
Provider
PostgreSQL · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
PostgreSQL psqlODBC 0 through 18.00.0006 (affected · custom)Default: unaffected PostgreSQL · cna

Weaknesses

2
  • CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (PostgreSQL · cna)
  • CWE-706 CWE-706 Use of Incorrectly-Resolved Name or Reference (PostgreSQL · cna)

References

2
  • GHSA-4392-6j85-5q2q https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4392-6j85-5q2q vendor-advisory Contributors: PostgreSQL (cna)
  • psqlODBC changelog https://odbc.postgresql.org/changelog/ release-notes Contributors: PostgreSQL (cna)

Provider assertions

1

PostgreSQL · cna

SQL injection and redirected writes because the driver reads SQL text differently from the server

Provenance

Schema
5.2
Searchable
yes
Content hash
88ee51b066f4f1dfe297d13306812df73281d354f631a155b9dc68d758626f1a
Ingested
25 Nov 2026, 22:31:10 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected