Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect via ANSI driver, non-UTF-8 encoding
-
DeliverySubmit crafted multibyte parameter or catalog name
-
ExploitDriver misjudges lead-byte / quote boundary
-
ExecutionQuote escapes the string literal
-
ImpactInjected 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
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.
Articles & Coverage 2
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
psqlODBC through 18.00.0006 parses and rebuilds connection strings in several ways that let an attacker-influenced value
SQL injection in psqlODBC up to and including 18.00.0006 lets remote unauthenticated attackers run SQL with the applicat
Heap corruption in psqlODBC through 18.00.0006 can crash an application or corrupt its memory when it processes attacker
Extreme sizes and counts handled without range checks in psqlODBC's driver core let 16-bit counters and 2 GiB-scale size
Heap corruption and driver crashes in psqlODBC (all versions up to and including 18.00.0006) stem from the driver not ve
SQL injection in psqlODBC through crafted database, schema, table, column, operator, cursor, or parameter identifiers ca
A client-side memory-corruption flaw in the PostgreSQL ODBC driver (psqlODBC) through 18.00.0006 causes the driver to wr
Memory-safety defects across several code paths in psqlODBC, the PostgreSQL ODBC driver, allow a hostile or compromised
Out-of-bounds reads and writes in psqlODBC before 18.00.0006 arise when a host application forwards untrusted column num
SQL injection in psqlODBC before 18.00.0006 allows an attacker who can influence a table or schema name passed by a host
A stack-based buffer overflow (CWE-121) in the psqlODBC driver, the official PostgreSQL ODBC driver, lets attacker-influ
Heap out-of-bounds write in the psqlODBC driver (CWE-787) affects all versions before 18.00.0006 and is reachable only w
NVD
CVE.org
EPSS
GitHub
Exploit-DB