Skip to main content

psqlODBC CVE-2026-136510

MEDIUM
Improper Initialization (CWE-665)
2026-11-25 PostgreSQL
4.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Control one value in array insert
  2. Delivery
    Trigger parameter-conversion failure or abandon data-at-execution batch
  3. Exploit
    Failed rows left queued on statement handle
  4. Execution
    Next execution silently sends queued rows
  5. Impact
    Rows stored while failure log becomes no-op

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper initialization
Exploitation Conditions

Requires an application running psqlODBC 12.02.0000-18.00.0006 that uses batched parameter-array execution, plus either a data-at-execution batch abandoned by SQLCancel or a rejected SQLPutData, OR a later row that fails during parameter conversion; and an end user able to control at least one value in that application's array insert. Exploitation also depends on the application reusing the same statement handle after the failure (for example to log the error). Limiting factors that reduce real-world risk: there is no SQL injection - the statements that run are the application's own, correctly quoted text, with no attacker-supplied SQL; the flaw only exists in applications that actually use batched parameter arrays (a feature introduced in 12.02.0000); and AC:H reflects the precise failure-then-reuse ordering needed. The memory-corruption variant (writing past the end of SQL_ATTR_PARAM_STATUS_PTR) additionally requires the next statement on the handle to supply a shorter status-pointer array.

Impact

Overall this is a medium-severity, lower-urgency issue. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L, base 4.8) describes a state-management flaw with low integrity and low availability impact and NO confidentiality impact - note this directly contradicts the 'Information Disclosure' tag, since C:N means nothing is disclosed; the real harm is silent data persistence and a memory over-write, not a leak. Exploitation status: no KEV entry, no EPSS score supplied, and no public exploit identified at time of analysis (the only references are a GHSA advisory and the project changelog, neither of which is working exploit code). The vuln.today decision label is 'this_month', consistent with AC:H and the absence of active-exploitation signals - this is a fix-on-normal-cycle item, not an emergency. The main caveat is attack vector: CVSS marks AV:N, but the actual trigger is an end user controlling one value in an application's own array insert, so reachability depends entirely on whether that application exposes array inserts to untrusted input - verify against the specific deployment rather than assuming blanket network exploitability. No SSVC automatable/technical-impact fields were supplied to cross-check.

Exploit ScenarioDerived

An end user who controls a single value in an application's batched parameter-array insert supplies input that either forces a later row to fail parameter conversion, or abandons a data-at-execution batch via SQLCancel/rejected SQLPutData. The queued rows left on the statement handle are then flushed by the next execution on that handle, so data the application believed had failed is silently committed while its failure-log statement returns SQL_SUCCESS without running. No public exploit code is available, and the high attack complexity (AC:H) reflects the specific failure-then-reuse sequence required.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 25, 2026

State leakage in the PostgreSQL ODBC driver psqlODBC (12.02.0000 through 18.00.0006) lets rows from an abandoned batched parameter-array execution be transmitted to the server by the next SQLExecDirect issued on the same statement handle, which then returns SQL_SUCCESS without sending its own statement - so a failed batch's rows are silently stored while the application's follow-up statement, such as an error log entry, becomes a no-op. An end user who controls a single value in an application's array insert can arrange both halves of this, and a second route triggers without data-at-execution parameters when a later row fails during parameter conversion, sending queued rows into whatever transaction and session context is current; one variant also writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array provided by the next statement. No SQL injection is involved - the statements executed are the application's own correctly quoted text - and exploitation requires a specific failure-then-handle-reuse ordering (AC:H), with no public exploit identified at time of analysis.

RemediationAI

Patch available per vendor advisory: consult GHSA-9j2v-p4pj-f4wj and the psqlODBC changelog (https://odbc.postgresql.org/changelog/) and upgrade to a release newer than 18.00.0006; the supplied data does not name the exact fixed version, so confirm it against the advisory before rolling out. Until an upgrade is possible, the mechanism itself points to compensating controls with known trade-offs: do not reuse a statement handle after a batched parameter-array execution fails - free and reallocate the handle (SQLFreeHandle/SQLFreeStmt) or use a separate connection for the error-logging statement, at the cost of extra connection or handle churn and possible loss of transaction-local state on the discarded handle; avoid batched parameter arrays in favour of single-row execution (for example executing each row individually rather than via SQL_ATTR_PARAM_ARRAY_ROW_COUNTS) where throughput allows, which removes both described trigger paths; and size SQL_ATTR_PARAM_STATUS_PTR arrays to match the parameter set exactly, since the out-of-bounds variant requires the next statement on the handle to supply a shorter status-pointer array. Applications should verify that an injected value in an array insert cannot be paired with a batch failure, and should treat a SQL_SUCCESS return on a handle previously used for a failed batch as untrusted until the driver is patched.

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

The flaw is classified as CWE-665 (Improper Initialization) in the ODBC layer of psqlODBC: when a parameter-array batch execution fails part-way, the driver does not reset the statement handle's pending row queue, so the rows already queued for transmission survive the failure. Two trigger paths are described. The first requires data-at-execution parameters, where a batch is abandoned either by SQLCancel or by a SQLPutData call the driver rejects. The second requires no data-at-execution parameter at all: when conversion of a parameter in a later row fails, the previously queued rows are still handed to the server ahead of the next parameter array on that handle, inside whatever transaction and session settings are in effect at that later moment. A further variant writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement on the handle, which is where the low availability impact (A:L) originates. The defect was introduced with batched parameter-array execution in psqlODBC 12.02.0000, meaning any application that does not use parameter arrays is not exposed to this behaviour; the CPE record (cpe:2.3:a:postgresql:psqlodbc:*:*:*:*:*:*:*:*) is an unpinned wildcard, so the authoritative version boundary remains the 12.02.0000-18.00.0006 range stated in the advisory. Because the executed SQL is the application's own already-quoted statement text with no externally supplied SQL, the issue is a correctness and state-isolation defect rather than an injection primitive.

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 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 4.8 MEDIUM

AC:H because a specific failure-then-handle-reuse sequence is required; PR:N as the triggering end user needs no app authentication; C:N since nothing is disclosed, with only low integrity and availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/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
None
Integrity
Low
Availability
Low

DescriptionCVE.org

A parameter-array execution that fails part-way leaves the rows it has already queued on the statement handle, and the next execution on that handle sends them. After a data-at-execution batch is abandoned, by SQLCancel or a rejected SQLPutData, the next SQLExecDirect sends the failed batch's rows and returns SQL_SUCCESS without sending its own statement.

So an application that logs the failure on the same handle has its log entry turned into a silent no-op, while rows it was told had failed are stored. An end user who controls one value in an application's array insert can arrange both halves of that.

A second route needs no data-at-execution parameter: when building a later row fails in parameter conversion, the queued rows go to the server ahead of the next parameter array on the handle, inside whatever transaction and session settings are current by then. One variant also writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement.

The statements that run are the application's own, correctly quoted; no SQL text comes from outside.

Versions from psqlODBC 12.02.0000, which introduced batched parameter-array execution, up to and including 18.00.0006 are affected.

Threat Intelligence Overview

EPSS Score
0.4%
Top 74% exploitable
Prevalence
Medium
PostgreSQL ODBC driver; widely used but ODBC is a deployment subset
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

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

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-136500 HIGH
8.1 Nov 25

SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed

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

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