CVE-2026-2006

PostgreSQL missing validation of multibyte character length executes arbitrary code

State
Published
Severity
8.8 High
Published
Feb 12, 2026
Updated
Jul 15, 2026
Reserved
Feb 5, 2026

Read the record on cve.org

Description

Missing validation of multibyte character length in PostgreSQL text manipulation allows a database user to issue crafted queries that achieve a buffer overrun. That suffices to execute arbitrary code as the operating system user running the database. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HPostgreSQL
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat-SADP

Weaknesses

  • CWE-129 Improper Validation of Array Index
  • CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input

Affected Products

ProductVersions
PostgreSQLn/a
  • 18 to before 18.2Affected
  • 17 to before 17.8Affected
  • 16 to before 16.12Affected
  • 15 to before 15.16Affected
  • before 14.21Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.