Ce mail provient de l'extérieur, restons vigilants

=====================================================================


                            CERT-Renater

                Note d'Information No. 2026/VULN1194

_____________________________________________________________________

DATE                : 26/11/2026

HARDWARE PLATFORM(S): /

OPERATING SYSTEM(S): Systems running psqlodbc versions prior to
                                    18.00.0007.

====================================================================
https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-pw7w-x92p-r3q2
_____________________________________________________________________

Memory corruption and crashes when the driver rewrites statements for
cursors and escapes

High	davecramer published GHSA-pw7w-x92p-r3q2

Software
psqlodbc

Affected versions
<= 18.00.0006

Patched versions
18.00.0007


Description
Impact
psqlODBC rewrites statement text for keyset-driven cursors and ODBC
escapes using positions it found in the text. These positions could
lie outside the text or describe another statement:

After SQLExecDirect() failed on a statement handle, the FROM and WHERE
positions of the failed statement were applied to the next, shorter
statement on that handle.

The parser could record a FROM position with no text after it, and the
rewrite then copied a negative length.

An {fn …} escape whose arguments contain FOR UPDATE, ; or INTO … FROM
made the driver remove a cursor prefix from the wrong buffer.

{fn CONVERT(?, …)} with an output parameter produced a negative
argument length.

An unclosed {fn …} escape made the driver read past the statement,
and a few thousand nested ones exhausted the stack.

Translating @@identity in long statement text read an uninitialised
pointer, and {? = call …} with nothing bound for the return value
dereferenced NULL.

Whoever supplies the text of a statement that an application opens
on a keyset-driven or dynamic cursor with a concurrency other than
read-only, or calls with an output parameter, can corrupt the
application's heap and end it. That includes the users of query
tools, report builders and other applications that run SQL their
users type. Code execution has not been demonstrated.

Versions up to and including psqlODBC 18.00.0006 are affected.

Patches
Fixed in psqlODBC 18.00.0007. Parse information is freed together
with the statement it describes, a statement whose positions do
not fit its text runs on a read-only static cursor, and escape
arguments are checked.

Workarounds
Open user-supplied statements on forward-only or static read-only
cursors.

Credits
Found by an automated scan with the OSS Scanner
(scan psqlodbc-20261105-004).


Severity
High
7.5/ 10

CVSS v3 base metrics
Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID
CVE-2026-136515

Weaknesses
WeaknessCWE-125
WeaknessCWE-674
WeaknessCWE-787


=========================================================
+ CERT-RENATER        |    tel : 01-53-94-20-44         +
+ 23/25 Rue Daviel    |    fax : 01-53-94-20-41         +
+ 75013 Paris         |   email:cert@support.renater.fr +
=========================================================




