CVE-2026-2007

PostgreSQL pg_trgm heap buffer overflow writes pattern onto server memory

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

Read the record on cve.org

Description

Heap buffer overflow in PostgreSQL pg_trgm allows a database user to achieve unknown impacts via a crafted input string. The attacker has limited control over the byte patterns to be written, but we have not ruled out the viability of attacks that lead to privilege escalation. PostgreSQL 18.1 and 18.0 are affected.

Scores

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

Weaknesses

  • CWE-122 Heap-based Buffer Overflow
  • CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Affected Products

ProductVersions
PostgreSQLn/a
  • 18 to before 18.2Affected

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.