Skip to main content

psqlODBC CVE-2026-136500

HIGH
SQL Injection (CWE-89)
2026-11-25 PostgreSQL
8.1
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect via ANSI driver, non-UTF-8 encoding
  2. Delivery
    Submit crafted multibyte parameter or catalog name
  3. Exploit
    Driver misjudges lead-byte / quote boundary
  4. Execution
    Quote escapes the string literal
  5. Impact
    Injected SQL runs as application database role

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a PostgreSQL connection that is NOT in UTF-8, using the psqlODBC ANSI driver or the ANSI entry points, with one of the affected client encodings: BIG5 named via a server-accepted alias (WIN950, Windows950, big-5), or JOHAB, EUC_TW, EUC_CN, or EUC_KR (where the driver accepts too narrow a lead-byte range). The attacker must control either one bound character parameter or a name the application passes to a catalog function such as SQLTables(). For the bound-parameter path, the driver must additionally be performing parameter substitution itself - i.e. UseServerSidePrepare=0 or a cursor type other than forward-only. Limiting factors: UTF-8 connections, the Unicode driver, server-side prepared statements with forward-only cursors, and encodings outside the listed set are all NOT affected, which substantially narrows the exposed population and justifies the CVSS AC:H rating.

Impact

This is a genuine but conditional SQL injection (CWE-89) in psqlODBC reported by PostgreSQL itself, carrying a CVSS 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). The high base score is driven by network vector, no required privileges, and full C/I/A impact, but AC:H correctly reflects that several non-default preconditions must all hold simultaneously (see exploitation_conditions), which materially lowers real-world exposure versus a default-config RCE/SQLi. No EPSS score was supplied, the CVE is not listed in CISA KEV, and no public exploit or PoC reference is present in the input - only the vendor security advisory (GHSA-2rjm-67gc-54r4) and the project changelog. The vuln.today decision label is 'this_week', consistent with a serious, vendor-confirmed flaw that is not under active exploitation and therefore does not rise to act_now/emergency urgency. Net assessment: a real priority to patch for environments running the ANSI driver with the named non-UTF-8 client encodings, but lower practical risk for the common UTF-8/server-side-prepare deployments that the conditions exclude. Missing signals to note explicitly: EPSS probability is absent (cannot gauge likelihood statistically), and no fixed version is stated in the provided evidence.

Exploit ScenarioDerived

An application uses the psqlODBC ANSI driver connected to PostgreSQL with a non-UTF-8 client encoding such as BIG5 (via an alias like WIN950) or EUC_KR, and lets an end user supply a bound character parameter or a name passed to a catalog function like SQLTables(). The attacker crafts input containing a multibyte sequence whose lead byte the driver mishandles, so a quote the server reads on its own is treated as part of a character (or a quote that should be doubled is not), breaking out of the string literal and injecting attacker-controlled SQL. The injected statements then execute with the rights of the application's database role. No confirmed public exploit code is present in the supplied intelligence.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed to a catalog function such as SQLTables() execute SQL with the application's database role rights, but only on a non-UTF-8 connection using the ANSI driver or ANSI entry points with BIG5 via an accepted alias (WIN950, Windows950, big-5) or JOHAB, EUC_TW, EUC_CN, or EUC_KR. Bound-parameter exploitation additionally requires the driver to substitute parameters itself, as with UseServerSidePrepare=0 or a cursor type other than forward-only. UTF-8 connections, the Unicode driver, server-side prepared statements with forward-only cursors, and other encodings are unaffected; the CVSS 8.1 vector is AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, and no public exploit was identified at time of analysis.

RemediationAI

Upgrade to the fixed psqlODBC release identified in the vendor advisory; affected versions are up to and including 18.00.0006, and the provided data does not state the exact fixed version number, so confirm it at https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2rjm-67gc-54r4 and https://odbc.postgresql.org/changelog/. Until then, avoid the exposed configuration by using a UTF-8 connection or the Unicode driver and by not using the ANSI driver/ANSI entry points with BIG5 aliases (WIN950, Windows950, big-5) or JOHAB, EUC_TW, EUC_CN, or EUC_KR; for bound parameters, use UseServerSidePrepare=1 and forward-only cursors, and avoid passing untrusted names to catalog functions such as SQLTables(). These controls reduce exposure but may require application changes and do not repair the driver's encoding-boundary handling, so upgrading remains the complete fix.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

psqlODBC is PostgreSQL's ODBC driver. To escape SQL literals it must double single-quote bytes, and to do that correctly for multibyte client encodings it must know where each character ends. The driver misclassified the server-accepted BIG5 aliases WIN950, Windows950, and big-5 as single-byte, and used too narrow a lead-byte range for JOHAB, EUC_TW, EUC_CN, and EUC_KR; as a result, a quote byte that the server treats as part of a multibyte character was not doubled, or a standalone quote was consumed as part of a character, so the literal ended early. This is CWE-89 SQL injection caused by improper neutralization of special elements in SQL commands, exposed through the ANSI driver/ANSI entry points on non-UTF-8 connections; the catalog-function path applies to names such as SQLTables(), while the bound-parameter path applies when the driver performs substitution (UseServerSidePrepare=0 or a non-forward-only cursor). The CVSS vector is AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, with PR:N indicating no authentication requirement at the vulnerable interface and AC:H reflecting the narrow encoding, driver, and configuration prerequisites. The CPE cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:* identifies the psqlODBC package, and the advisory scopes affected releases to 18.00.0006 and earlier.

Know when Psqlodbc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Network-reachable via an application end user with no DB privileges (PR:N); AC:H because multiple non-default preconditions (ANSI driver, specific non-UTF-8 encoding, self-substituted parameters) must coincide; full SQL execution as the app role gives C:H/I:H/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

To escape a bound parameter, or a name passed to a catalog function, psqlODBC has to know where each multibyte character of the client encoding ends. It treated a client encoding named by an alias the server accepts, such as WIN950, Windows950 or big-5 for BIG5, as single-byte, and it accepted too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR. A quote byte that the server reads as part of such a character was then not doubled, or a quote the server reads on its own was taken for part of a character, and the literal ended early.

An end user who controls one bound character parameter, or a name the application passes to a catalog function such as SQLTables(), can run SQL with the rights of the application's database role. This requires a connection that is not in UTF-8: the ANSI driver, or the ANSI entry points, with one of these client encodings. For bound parameters the driver must also be substituting parameters itself, as it does with UseServerSidePrepare=0 or a cursor type other than forward-only.

Versions up to and including psqlODBC 18.00.0006 are affected.

Technical POC Analysis

CWE-89 (SQL injection), enabled by CWE-173 (Improper Handling of Alternate Encoding).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity SQL injection flaw in the psqlODBC driver (through version 18.00.0006) could let an attacker execute database commands under the application's own credentials, but only under a narrow combination of conditions - a non-UTF-8 connection, the ANSI driver or entry points, specific legacy encodings such as BIG5 or EUC_KR, and, for parameter-bound attacks, client-side parameter substitution. Applications and business units still relying on traditional ANSI-based or legacy regional-encoding database connectivity should be prioritized. With no vendor patch currently available, leadership attention should focus on inventorying affected deployments and enforcing interim configuration controls until remediation ships.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: switch affected connections to UTF-8 or the Unicode driver; where legacy encoding is unavoidable, use forward-only cursors and server-side prepared statements rather than client-side parameter substitution, and limit application database roles to least privilege to contain potential injection impact.

Threat Intelligence Overview

EPSS Score
0.5%
Top 64% exploitable
Prevalence
Medium
PostgreSQL's official ODBC driver; common in Windows/ANSI app stacks, not universal
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:*
CVE-2026-136507 HIGH
8.1 Nov 25

psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value

CVE-2026-136502 HIGH
8.1 Nov 25

SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat

CVE-2026-136515 HIGH
7.5 Nov 25

Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker

CVE-2026-136505 HIGH
7.5 Nov 25

Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size

CVE-2026-136509 HIGH
7.5 Nov 25

Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve

CVE-2026-136506 HIGH
7.5 Nov 25

SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca

CVE-2026-136512 HIGH
7.5 Nov 25

A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr

CVE-2026-136503 HIGH
7.5 Nov 25

Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised

CVE-2026-120064 HIGH
7.5 Nov 02

Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num

CVE-2026-120062 HIGH
7.5 Nov 02

SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host

CVE-2026-120061 HIGH
7.5 Nov 02

A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ

CVE-2026-120058 HIGH
7.5 Nov 02

Heap out-of-bounds write in the psqlODBC driver (CWE-787) affects all versions before 18.00.0006 and is reachable only w

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy