Heap Buffer Overflow in PostgreSQL pgcrypto Affects Multiple Versions
CVE-2026-2005
Key Information:
- Vendor
PostgreSQL
- Status
- Vendor
- CVE Published:
- 12 February 2026
Badges
What is CVE-2026-2005?
CVE-2026-2005 is a critical vulnerability identified in the PostgreSQL pgcrypto extension, which is designed to provide cryptographic functions for secure data handling within PostgreSQL databases. This vulnerability manifests as a heap buffer overflow, allowing an attacker to execute arbitrary code with the privileges of the database's operating system user. Such exploitation can lead to severe consequences for organizations, including unauthorized access to sensitive data, full control over the database environment, and potential breaches extending to the underlying infrastructure. The vulnerability affects various versions of PostgreSQL, specifically those released prior to 18.2, 17.8, 16.12, 15.16, and 14.21, making a significant number of existing deployments at risk if not updated.
Potential impact of CVE-2026-2005
-
Unauthorized Code Execution: Exploitation of this vulnerability can allow attackers to run malicious code on the server, potentially gaining control over database operations and manipulating or exfiltrating sensitive information.
-
Data Breach Risks: With elevated privileges, attackers can access and compromise confidential data stored within the database. This could result in severe repercussions for organizations, including legal implications and loss of customer trust.
-
Infrastructure Compromise: The ability to execute code at the operating system level means that an attacker could exploit the PostgreSQL instance to infiltrate other components of the IT infrastructure, escalating the attack and potentially affecting additional systems and services within the organization.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
PostgreSQL 18 < 18.2
PostgreSQL 17 < 17.8
PostgreSQL 16 < 16.12
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V3.1
Timeline
- π‘
Public PoC available
- πΎ
Exploit known to exist
Vulnerability published
Vulnerability Reserved