psqlODBC
CVE-2026-136511
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain on-path/MITM network position
-
ExploitVictim configures SSLmode=Require or Verify-Full
-
ExecutionpsqlODBC silently disables TLS, returns SQL_SUCCESS
-
ImpactIntercept and alter cleartext PostgreSQL traffic
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Fail-secure design
|
| Exploitation Conditions | Two conditions must both hold. First, the client must use psqlODBC (version ≤18.00.0006) with a connection string that specifies an SSLmode token the driver does not recognize - specifically non-lowercase or brace-wrapped forms such as 'SSLmode=Require', 'SSLmode=Verify-Full', 'SSLmode={require}' or 'SSLmode={verify-full}'; these are silently mapped to 'disable' with SQLDriverConnect() returning SQL_SUCCESS and no diagnostic, so the operator gets no error signal. Second, the attacker must occupy a position on the network path between client and PostgreSQL server (an active MITM), which is the high-complexity limiting factor (AC:H). What limits exploitation: deployments that use the exact lowercase 'sslmode=require'/'verify-full' spelling are unaffected; the attacker gains nothing without network-path control; and there is no availability impact - only interception and modification of traffic (C:H/I:H). |
| Impact | This is a fail-open TLS flaw (CWE-636): psqlODBC silently maps unrecognized SSLmode strings such as 'Require', 'Verify-Full', '{require}' or '{verify-full}' to 'disable', and SQLDriverConnect() returns SQL_SUCCESS with no diagnostic, so an operator who believes they mandated encryption actually transmits in cleartext. The provided CVSS:3.1 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N, 6.8) is internally consistent with this: network vector, high complexity (the attacker must hold an on-path/MITM position), no privileges, but a required precondition (UI:R) that a victim configured one of the mis-cased or brace-wrapped SSLmode values. The vuln.today Decision label is this_month - elevated but not act_now/emergency - which aligns with the absence of KEV and the dependency on an attacker already controlling the network path. No EPSS score, no KEV listing, and no PoC/exploit code are present in the input; the two references are a PostgreSQL GHSA advisory and the project changelog, i.e. advisory material rather than working exploit code. Net: a genuine confidentiality/integrity risk for deployments that both use the affected misspelled SSLmode syntax AND whose traffic can be intercepted, but not a mass-exploitable, unauthenticated-against-default-config issue - its real-world priority is gated by the MITM prerequisite and the specific misconfiguration pattern rather than by raw severity. |
| Exploit ScenarioDerived | An application is configured to connect to PostgreSQL through psqlODBC with a connection string like 'SSLmode=Require' (capitalized) or 'SSLmode={verify-full}', expecting an encrypted, authenticated channel; psqlODBC does not recognize the token and silently falls back to an unencrypted connection while still returning SQL_SUCCESS. An attacker positioned on the network path between the client and the PostgreSQL server (the AC:H condition) then reads and modifies the plaintext database traffic, including credentials and query data. No public exploit code is identified in the provided sources - only a PostgreSQL security advisory and changelog. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
A fail-open TLS configuration flaw in psqlODBC up to and including 18.00.0006 causes unrecognized SSLmode spellings - such as 'SSLmode=Require', 'SSLmode=Verify-Full', 'SSLmode={require}' or 'SSLmode={verify-full}' - to be silently mapped to 'disable', with SQLDriverConnect() returning SQL_SUCCESS and no diagnostic. An operator who believes encryption is mandated instead transmits in cleartext, allowing an attacker positioned on the network path to read and modify connection traffic. Deployments using the exact lowercase 'sslmode=require' or 'sslmode=verify-full' spelling are unaffected, and no public exploit code or confirmed active exploitation was identified at time of analysis.
RemediationAI
No vendor-released patch version is identified in the available data for this issue; the advisory GHSA-9vpf-qm3q-xh5x (https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9vpf-qm3q-xh5x) and the changelog at https://odbc.postgresql.org/changelog/ should be monitored for the fixed release, and psqlODBC should be upgraded as soon as one is published. In the interim, the actionable mitigation is to audit every connection string and DSN configuration and use the exact lowercase token 'sslmode=require' or 'sslmode=verify-full' rather than mixed-case or brace-wrapped spellings, verifying after connection that the session is actually encrypted (for example by checking pg_stat_ssl on the server); the trade-off is that this is a manual configuration review whose completeness depends on finding every client and DSN in use. Restricting network reachability so that PostgreSQL clients cannot be reached by hosts off the trusted path reduces MITM exposure but does not fix the fail-open behavior, and operators should be aware that the driver provides no error signal when it silently downgrades to cleartext.
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 the official ODBC driver for PostgreSQL; applications pass connection parameters, including the SSL mode, through SQLDriverConnect(). The SSL mode governs whether TLS is negotiated and how strictly the server certificate is validated. CWE-636 (Not Failing Securely / 'fail open') describes the root cause: rather than rejecting an SSLmode token it does not parse, the driver maps the unrecognized value to 'disable' and proceeds unencrypted, returning SQL_SUCCESS without a diagnostic record. Because the failure is silent, the connection succeeds normally and the application has no signal that its confidentiality requirement was dropped. Exploitation requires the connection string to contain a non-canonical form (mixed/upper case or brace-wrapped) while an attacker holds a position on the network path, consistent with the AC:H metric in the assessed vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N. There is no availability impact; the exposure is interception and modification of traffic, which is why C:H and I:H apply.
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:R/S:U/C:H/I:H/A:N
AV:N and AC:H because exploitation needs an attacker-uncontrolled on-path position; PR:N as no auth is needed; UI:R since a victim must configure a misrecognized SSLmode; C:H/I:H for read/modify, A:N.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
DescriptionCVE.org
psqlODBC mapped an SSLmode value in a connection string that it did not recognise, such as SSLmode=Require, SSLmode=Verify-Full, SSLmode={require} or SSLmode={verify-full}, to disable. SQLDriverConnect() then returned SQL_SUCCESS with no diagnostic, and the connection was not encrypted.
An attacker on the network path of such a connection can read and change its traffic.
Versions up to and including psqlODBC 18.00.0006 are affected.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
SQL injection in psqlODBC through 18.00.0006 lets an attacker who controls a bound character parameter or a name passed
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
NVD
CVE.org
EPSS
GitHub
Exploit-DB