Every CVE Search/ Get API key

CVE-2026-120063

psqlODBC stack buffer overflow when quoting long schema and table names

5.9 MediumFix available

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
High

Exploit likelihood

0.27%Unchanged since Nov 3, 2026
90%50%10%1%

What each source reports

CVE List Score used 5.9

psqlODBC stack buffer overflow when quoting long schema and table names

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Record
CVE-2026-120063
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-121, CWE-787
Updated
2026-11-02
EUVDEUVD-2026-115376 5.9

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Record
EUVD-2026-115376
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-5xmp-p3qm-7hxq 5.9

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets...

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Record
GHSA-5xmp-p3qm-7hxq
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-121
Updated
2026-11-03
NVD 5.9

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Record
CVE-2026-120063
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-121, CWE-787
Updated
2026-11-03
OSV 5.9

psqlODBC stack buffer overflow when quoting long schema and table names

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Record
CVE-2026-120063
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-121, CWE-787
Updated
2026-11-08
OSVDEBIAN-CVE-2026-120063 5.9

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Record
DEBIAN-CVE-2026-120063
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Updated
2026-11-05
OSVUBUNTU-CVE-2026-120063 5.9

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

Record
UBUNTU-CVE-2026-120063
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Updated
2026-11-05
OSVopenSUSE-SU-2026:12472-1 No score

psqlODBC-18.00.0006-1.1 on GA media

These are all security issues fixed in the psqlODBC-18.00.0006-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:12472-1
Updated
2026-11-07

Affected products

Affected packages

Affected packages
PackageAffectedFixed
psqlodbc
Debian:12
All versions, plus listed versions
1:13.02.0000-21:15.00.0000-11:16.00.0000-11:16.00.0005-11:17.00.0004-1
Show 13 moreShow less
1:17.00.0004-21:17.00.0005-11:17.00.0006-11:17.00.0006-21:17.00.0007-11:17.00.0008-11:18.00.0001-11:18.00.0002-11:18.00.0003-11:18.00.0003-21:18.00.0004-11:18.00.0005-11:18.00.0006-1
None known
psqlodbc
Debian:13
All versions, plus listed versions
1:17.00.0004-21:17.00.0005-11:17.00.0006-11:17.00.0006-21:17.00.0007-1
Show 8 moreShow less
1:17.00.0008-11:18.00.0001-11:18.00.0002-11:18.00.0003-11:18.00.0003-21:18.00.0004-11:18.00.0005-11:18.00.0006-1
None known
psqlodbc
Debian:14
before 1:18.00.0006-1, plus listed versions
1:17.00.0004-21:17.00.0005-11:17.00.0006-11:17.00.0006-21:17.00.0007-1
Show 7 moreShow less
1:17.00.0008-11:18.00.0001-11:18.00.0002-11:18.00.0003-11:18.00.0003-21:18.00.0004-11:18.00.0005-1
1:18.00.0006-1
psqlodbc
Ubuntu:16.04:LTS
All versions, plus listed versions
1:09.03.0300-1
None known
psqlodbc
Ubuntu:18.04:LTS
All versions, plus listed versions
1:09.06.0410-11:10.00.0000-11:10.01.0000-1
None known
psqlodbc
Ubuntu:20.04:LTS
All versions, plus listed versions
1:11.00.0000-11:12.00.0000-11:12.01.0000-1
None known
psqlodbc
Ubuntu:22.04:LTS
All versions, plus listed versions
1:13.00.0000-11:13.02.0000-11:13.02.0000-2
None known
psqlodbc
Ubuntu:24.04:LTS
All versions, plus listed versions
1:15.00.0000-11:16.00.0000-1
None known
psqlodbc
Ubuntu:26.10
All versions, plus listed versions
1:17.00.0007-11:18.00.0001-11:18.00.0002-1
None known
psqlodbc
Ubuntu:26.04:LTS
All versions, plus listed versions
1:17.00.0006-21:17.00.0007-1
None known
psqlODBC
openSUSE:Tumbleweed
From an advisory covering 11 CVEs
before 18.00.0006-1.1
18.00.0006-1.1

History

History
RecordedChangedSources
aliases, referencesOSV
affected, aliases, referencesOSV
affected, factsOSV
affected, aliases, facts, referencesOSV
affected, aliases, referencesOSV
aliases, publishedEUVD
aliases, referencesGitHub Advisories, NVD
first indexedCVE List

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-120063 is a medium vulnerability (CVSS 5.9) in Postgresql Psqlodbc, published November 2, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.27%, the 19th percentile. Fixed in psqlodbc 1:18.00.0006-1.

References

Show 13 moreShow less
MoveEnter Open