Cyber Resilience

CVE-2026-2005

HighUpdated

Published: 12 February 2026

Published
12 February 2026
Modified
30 June 2026
KEV Added
Patch
CVSS Score v3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0068 47.7th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2026-2005 is a high-severity Heap-based Buffer Overflow (CWE-122) vulnerability in Postgresql Postgresql. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 47.7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 AC-6 (Least Privilege) and CM-7 (Least Functionality).

Deeper analysis

CVE-2026-2005 is a heap buffer overflow vulnerability (CWE-122) in the pgcrypto extension of PostgreSQL, published on 2026-02-12. It affects versions prior to PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21. The issue arises when processing ciphertext, enabling a ciphertext provider to trigger the overflow and execute arbitrary code with the privileges of the operating system user running the database. The vulnerability carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), indicating high severity due to its potential for remote exploitation with low privileges.

An attacker requires low privileges (PR:L), such as a database user with access to invoke pgcrypto functions, and can exploit this over the network (AV:N) with low complexity (AC:L) and no user interaction (UI:N). Successful exploitation allows arbitrary code execution as the OS user running PostgreSQL, potentially leading to full system compromise, data exfiltration, or further lateral movement depending on the database server's context and privileges.

Mitigation is addressed in the PostgreSQL security advisory at https://www.postgresql.org/support/security/CVE-2026-2005/, with fixes available in versions 18.2, 17.8, 16.12, 15.16, and 14.21. Security practitioners should prioritize upgrading affected installations and review access to pgcrypto functions to limit exposure.

EU & UK References

Vulnerability details

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Why these techniques?

Heap buffer overflow in network-accessible PostgreSQL pgcrypto extension directly enables remote code execution by exploiting a server-side application vulnerability (T1190).

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-2007Same product: Postgresql Postgresql
CVE-2026-6476Same product: Postgresql Postgresql
CVE-2026-6473Same product: Postgresql Postgresql
CVE-2026-6637Same product: Postgresql Postgresql
CVE-2026-2004Same product: Postgresql Postgresql
CVE-2026-2006Same product: Postgresql Postgresql
CVE-2026-6477Same product: Postgresql Postgresql
CVE-2026-6475Same product: Postgresql Postgresql
CVE-2026-6479Same product: Postgresql Postgresql
CVE-2025-53511Shared CWE-122

Affected Assets

postgresql
postgresql
14.0 — 14.21 · 15.0 — 15.16 · 16.0 — 16.12

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly remediates the heap buffer overflow in pgcrypto by requiring timely patching or upgrading to fixed PostgreSQL versions such as 18.2 or later.

prevent

Enforces least privilege by restricting database users' ability to execute pgcrypto functions, blocking low-privilege (PR:L) attackers from triggering the vulnerability.

prevent

Limits system functionality by disabling or restricting the pgcrypto extension when not required, preventing invocation of the vulnerable ciphertext processing code.

References