Skip to main content

psqlODBC CVE-2026-136513

LOW
Improper Link Resolution Before File Access (CWE-59)
2026-11-25 PostgreSQL
3.6
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Gain local low-privileged account
  2. Delivery
    Control directory on driver's fallback log path
  3. Exploit
    Victim runs app with Debug/CommLog enabled
  4. Execution
    Unexpanded ~ resolved relative to process CWD
  5. Impact
    Driver creates or blocks victim's log files in attacker-chosen location

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires ALL of the following: (1) a local, authenticated low-privileged user account on the same host as the victim; (2) the victim's psqlODBC usage must have Debug or CommLog logging explicitly enabled (a non-default diagnostic setting); (3) the primary log directory must be unusable so the driver falls back to the home-directory path; and (4) the attacker must control a directory lying on the path that the unexpanded ~ resolves to relative to the victim process's current working directory. These conditions - especially the required non-default logging configuration and the need to control a specific directory on the resolved path - plus high attack complexity (AC:H) and local-only access substantially limit real-world exploitability. The resulting impact is limited to creating the victim's log files in directories the victim can already write to, or blocking the victim's process in open(); it does not grant code execution or cross-privilege data theft.

Impact

This is a low-severity, locally-exploitable issue that the input correctly prioritizes as 'monitor' - it is not an urgent, widely-weaponizable vulnerability. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N) confirms it requires local access, an already-authenticated low-privileged user, and high attack complexity, which is consistent with the description: the attacker must be a co-located local user who controls a directory lying on the driver's fallback path. No EPSS score and no KEV status are provided; there is no CISA KEV listing and no public exploit identified at time of analysis (the only 'advisory' reference is the GHSA security advisory, not working exploit code). All signals agree this is low real-world risk rather than a high-CVSS-but-low-real-risk mismatch - the CVSS score itself is modest (3.6). The one note of friction: the input tags this 'Information Disclosure,' but the described mechanism is link/path-following (CWE-59) that lets an attacker redirect or block creation of the victim's mylog_*.log / psqlodbc_*.log files, which reads more as integrity/availability impact than confidentiality - treat the 'information disclosure' framing with caution. Exploitation also depends on a non-default condition (Debug or CommLog logging enabled) that further narrows exposure.

Exploit ScenarioDerived

On a shared multi-user host, a low-privileged local attacker who controls a directory on the path the psqlODBC driver uses for its home-directory log fallback pre-creates or symlinks entries so that when a victim runs an application with Debug or CommLog enabled, the driver writes the victim's mylog_*.log and psqlodbc_*.log files into an attacker-influenced, victim-writable location - or leaves the victim's process hung inside open(). No public exploit code is identified; attack complexity is high (AC:H) and it requires local, authenticated access (PR:L).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 25, 2026

psqlODBC, the PostgreSQL ODBC driver, resolves the fallback log location as a literal unexpanded '~' path relative to the process's current working directory when Debug or CommLog logging is enabled and the configured log directory is unusable. Any version up to and including 18.00.0006 is affected, and a local authenticated low-privileged user who controls a directory along that resolved path can cause the victim's mylog_*.log and psqlodbc_*.log files to be created in arbitrary directories writable by the victim, or can leave the victim's process blocked in open(). Exploitation requires the non-default logging configuration, a broken primary log directory and attacker control of a specific path component, so real-world exposure is narrow; no public exploit code or active exploitation is identified at time of analysis, and the input decision is 'monitor'.

RemediationAI

The available data does not name an explicit fixed release beyond stating that the change completes the fix for CVE-2026-120066 in 18.00.0006; check the vendor advisory (https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g5jq-mpgp-mq7q) and the changelog (https://odbc.postgresql.org/changelog/) for the release that carries the corrected path handling and upgrade to that build. Because the vulnerable code path is only reached when Debug or CommLog logging is enabled and the primary log directory is unusable, keeping diagnostic logging disabled in normal operation and ensuring the configured log directory exists and is writable removes the fallback trigger; the trade-off is the loss of driver diagnostics needed for troubleshooting. Where logging must stay on, configure an absolute, fully specified log directory that the victim process can write to and that no other local user can influence, and be aware that this only avoids the faulty '~' fallback rather than repairing it - patching remains the only complete fix per the vendor.

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 issue is a classic CWE-59 link-following / path-resolution flaw in how psqlODBC handles its diagnostic log destination. When Debug or CommLog is switched on, the driver normally writes mylog_*.log and psqlodbc_*.log files to a configured log directory; if that directory cannot be used, it falls back to a per-user location derived from the home directory. The bug is that this fallback path was written with an unexpanded '~' rather than the resolved home directory, so the token is interpreted by the filesystem relative to the victim process's current working directory. A local attacker who can create or control a directory on that resolved path can therefore steer the victim's log output into any directory the victim can write to, or arrange for open() to block, tying up the victim's process. This is a follow-up to CVE-2026-120066 and is described as completing that fix in 18.00.0006. The published CVSS 3.1 vector is AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N (3.6, local, high complexity, authenticated low-privileged user, no user interaction), while the independent assessment adjusts the impact to C:N/I:L/A:L, reflecting file-placement integrity impact and a possible denial-of-service via blocked open() rather than meaningful data disclosure or privilege gain.

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

Local authenticated user (AV:L/PR:L) must control a path directory and the victim must enable logging (AC:H); impact is limited file redirection/creation (I:L) and process blocking (A:L), with no real attacker-side confidentiality gain (C:N).

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

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

DescriptionCVE.org

When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user's home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process's current directory. Another local user who controls a directory on that path can make the driver create the victim's mylog_*.log and psqlodbc_*.log files in any directory the victim can write to, or leave the victim's process blocked in open().

This completes the fix for CVE-2026-120066 in 18.00.0006.

Versions up to and including psqlODBC 18.00.0006 are affected.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
Medium
PostgreSQL ODBC driver; common in PostgreSQL/ODBC integrations but a narrower footprint than the server
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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

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

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