Skip to content
Fencer Intel
high 7.5

CVE-2026-120058 json

psqlODBC row cache overflow when a later FETCH changes the column count

published 7d ago modified 7d ago also EUVD-2026-115371

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 17%
public exploits
0
none known

Summary

psqlODBC sizes its row cache from the column count of a cursor's first result, but recomputes the column count from each later FETCH reply without checking that it matches. A server not trusted under current SSL settings can answer a later FETCH with more columns and make the driver write tuple records past the end of the heap allocation. A keyset reply with fewer columns than the key fields also underflows the unsigned field count. This is reachable with UseDeclareFetch enabled. Versions before psqlODBC 18.00.0006 are affected.

Patch / fix

  • PostgreSQL psqlODBC 18.00.0006
  • psqlodbc Debian 14 1:18.00.0006-1

debian advisories DEBIAN-CVE-2026-120058

  • psqlODBC openSUSE Tumbleweed 18.00.0006-1.1

opensuse advisories openSUSE-SU-2026:12472-1

Is CVE-2026-120058 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-120058 updated cvss 7.5

postgresql-odbc: postgresql-odbc: Arbitrary code execution via heap buffer overflow during cursor fetch

  • Red Hat Enterprise Linux 6 postgresql-odbc 16.00.0000-5.el10 Red Hat Enterprise Linux 7 postgresql-odbc 16.00.0000-5.el10 Red Hat Enterprise Linux 8 postgresql-odbc-tests, postgresql-odbc 16.00.0000-5.el10 Red Hat Enterprise Linux 9 postgresql-odbc 16.00.0000-5.el10 Red Hat Enterprise Linux 10 postgresql-odbc 16.00.0000-5.el10
    affected: workaround, no fix available

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
7d ago

Exploit prediction

0.26% chance of exploitation in the next 30 days, higher than 17% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • PostgreSQL psqlODBC

Classification

Weakness
  • CWE-787 Out-of-bounds Write
  • CWE-191 Integer Underflow (Wrap or Wraparound)

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.