CVE-2026-138405

Debug log records the database password under several spellings of the keyword, and the length of masked passwords

5.0 medium EPSS 0.22%

Published 29 Nov 2026 Updated 29 Nov 2026 CNA: PostgreSQL

Check your servers for CVE-2026-138405

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138405 affects psqlodbc, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

Before psqlODBC writes a connection string to its debug log, it masks the password. It masked only a keyword written exactly as PWD or Password. A password given under " PWD", "PWD ", "Passwd" or "sslpassword" went into the log unmasked. The log line for each keyword also showed the value of any keyword the driver does not recognise, so a password under a misspelled keyword was logged as well.

A masked secret was replaced one character at a time, so the log showed the length of the password, and of each secret in pqopt.

CVE-2026-136504 covers two other ways the password reached the log: the setup dialog's Test button and the Unicode connect functions logged the connection string before it was masked. That is fixed in 18.00.0007. The faults described here are in the masking itself, and they remain in 18.00.0007.

The debug log is off by default, and only an administrator turns it on with the Debug setting. Only someone who later reads the log sees the password, which in practice means a log attached to a bug report or sent to support.

Versions up to and including psqlODBC 18.00.0007 are affected.

Severity (CVSS)

5.0 medium CVSS 3.1 from PostgreSQL (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
required: a user has to do something, such as open a link or a file
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.9% of all scored CVEs. Scores of 1 Dec 2026.

Weakness

  • CWE-532 Insertion of Sensitive Information into Log File

Affected products

As the CNA lists them.

ProductVersions
psqlODBC
package psqlodbc
affected up to and including 18.00.0007
Other versions: unaffected

Is my server affected?

Find the installed version of psqlodbc and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i psqlodbc
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-138405 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-138405

RHEL, Rocky, Alma, Fedora

rpm -q psqlodbc
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-138405

Alpine

apk list --installed | grep -i psqlodbc

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-138405
trivy image --scanners vuln IMAGE | grep CVE-2026-138405

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Patches and release notes

Source: the record CVE-2026-138405 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.