cve.bz

CVE-2026-120059

6.8 mediumEPSS 0.3%

Medium (6.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
For an updatable cursor over a table without OIDs that has an auto-increment int4 column, psqlODBC places that column's name, as reported by the server, into a printf-style format string. It later expands that string with one argument while it builds the WHERE clause of its positioned SELECT, UPDATE, and DELETE statements. A column name that contains format directives makes the driver read unrelated memory, which can crash the application or copy client memory into query text sent to the server. The name can come from a server not trusted under current SSL settings, or from any database user who can create a table that the application reads with an updatable cursor. Versions before psqlODBC 18.00.0006 are affected.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-10. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-134 Use of Externally-Controlled Format String
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-120059 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-120059?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-120059?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-120059 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13psqlodbcno fix listedDEBIAN-CVE-2026-120059
Debian14psqlodbc1:18.00.0006-1DEBIAN-CVE-2026-120059
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morepsqlodbcno fix listedUBUNTU-CVE-2026-120059
openSUSETumbleweedpsqlODBC18.00.0006-1.1openSUSE-SU-2026:12472-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is classified as Moderate severity because exploitation requires specific prerequisites, specifically an application querying an untrusted schema using updatable cursors on tables lacking object identifiers but containing auto-increment integer columns. In standard Red Hat Enterprise Linux deployments, applications typically connect to authenticated, trusted database instances with controlled schemas, substantially reducing the likelihood of encountering hostile column identifiers. While successful exploitation can expose client memory or terminate the connecting client process, it does not directly enable arbitrary code execution or compromise database server integrity.

Red Hat's mitigation

To mitigate this vulnerability, ensure client applications connect only to trusted PostgreSQL servers with strict SSL/TLS certificate verification enforced to block untrusted upstream metadata. Restrict database CREATE TABLE and schema modification privileges so untrusted users cannot introduce malicious format directives into column names. Where possible, avoid using updatable cursors over tables lacking OIDs that feature auto-increment integer columns.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql-odbcFix deferred
Red Hat Enterprise Linux 6postgresql-odbcOut of support scope
Red Hat Enterprise Linux 7postgresql-odbcFix deferred
Red Hat Enterprise Linux 8postgresql-odbcFix deferred
Red Hat Enterprise Linux 9postgresql-odbcFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-120059.

Attack patterns (CAPEC)

  • CAPEC-67 String Format Overflow in syslog() Likelihood: High · Severity: Very High
  • CAPEC-135 Format String Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON