Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-120058

Опубликовано: 02 нояб. 2026
Источник: redhat
CVSS3: 7.5
EPSS Низкий

Описание

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.

A flaw was found in postgresql-odbc. An untrusted database server can exploit this vulnerability to execute arbitrary code or cause a denial of service (DoS) on the client system. When cursor-based fetching is enabled, the driver determines its row cache size using the column count from the initial query result but fails to verify that subsequent fetch replies match this layout. By returning responses with mismatched column counts, a malicious server can cause a heap-based buffer overflow or integer underflow on the client.

Отчет

This vulnerability is rated as Important rather than Critical because successful exploitation requires connecting to an untrusted or compromised database server, or an active network interceptor, alongside a specific cursor fetch configuration. Under default driver deployments, clients typically communicate with trusted backend infrastructure using enforced TLS verification, which impedes unauthorized servers from injecting malformed fetch responses. Furthermore, the issue is only reachable when cursor-based fetching (UseDeclareFetch) is explicitly enabled in the ODBC connection profile or data source configuration.

Меры по смягчению последствий

To mitigate this disable UseDeclareFetch in ODBC data source profiles and enforce strict server certificate verification using sslmode=verify-full or GSSAPI authentication. As a compensating measure, enable Address Space Layout Randomization to hinder attackers from reliably targeting executable memory structures following heap overflow, enable full RELRO and PIE to protect the Global Offset Table and impede overwriting function pointers after heap corruption, and enforce forward-edge Control Flow Integrity or Shadow Call Stack to prevent hijacked control flow from overwritten heap pointers. Please apply the upstream patch to fully remediate.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6postgresql-odbcWill not fix
Red Hat Enterprise Linux 7postgresql-odbcAffected
Red Hat Enterprise Linux 10postgresql-odbcFixedRHSA-2026:10791503.12.2026
Red Hat Enterprise Linux 8postgresql-odbcFixedRHSA-2026:10742403.12.2026
Red Hat Enterprise Linux 9postgresql-odbcFixedRHSA-2026:10749603.12.2026

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-787
https://bugzilla.redhat.com/show_bug.cgi?id=2565364postgresql-odbc: postgresql-odbc: Arbitrary code execution via heap buffer overflow during cursor fetch

EPSS

Процентиль: 36%
0.00394
Низкий

7.5 High

CVSS3

Связанные уязвимости

CVSS3: 7.5
ubuntu
около 1 месяца назад

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.

CVSS3: 7.5
nvd
около 1 месяца назад

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.

CVSS3: 7.5
debian
около 1 месяца назад

psqlODBC sizes its row cache from the column count of a cursor's first ...

CVSS3: 7.5
github
около 1 месяца назад

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.

oracle-oval
4 дня назад

ELSA-2026-107496: postgresql-odbc security update (IMPORTANT)

EPSS

Процентиль: 36%
0.00394
Низкий

7.5 High

CVSS3