All reports
High

postgresql-odbc: postgresql-odbc: arbitrary code execution via buffer overflow in large-object read

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120057

Probability of exploitation in the next 30 days: 0.25%

FIRST EPSS · 2026-11-22

Description

psqlODBC copies the reply to a large-object read (loread) into the application's buffer using the length sent by the server, without comparing it to the buffer size. A server not trusted under current SSL settings, or a man-in-the-middle, can return more bytes than the buffer holds and overwrite adjacent memory in the client process with server-chosen bytes. Fetching any large-object column is sufficient to trigger it. Versions before psqlODBC 18.00.0006 are affected.

A flaw was found in psqlODBC. When processing large-object read (loread) responses from a database, the driver copies returned data into the application buffer without checking whether the data exceeds the buffer size. A malicious server or a network attacker performing a man-in-the-middle (MitM) attack can supply more data than expected to overwrite memory in the client process. This vulnerability can lead to arbitrary code execution or a Denial of Service (DoS) crash in the client application.