CVE-2026-2005

PostgreSQL pgcrypto heap buffer overflow 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

Heap buffer overflow in PostgreSQL pgcrypto allows a ciphertext provider 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-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
  • 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.