CVE-2026-2005
PostgreSQL pgcrypto heap buffer overflow executes arbitrary code
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.
INFO
Published Date :
Feb. 12, 2026, 2:16 p.m.
Last Modified :
June 30, 2026, 3:18 a.m.
Remotely Exploit :
No
Source :
f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 | ||||
| CVSS 3.1 | HIGH | MITRE-CVE | ||||
| CVSS 3.1 | HIGH | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Solution
- Upgrade PostgreSQL to version 18.2 or later.
- Upgrade PostgreSQL to version 17.8 or later.
- Upgrade PostgreSQL to version 16.12 or later.
- Upgrade PostgreSQL to version 15.16 or later.
Public PoC/Exploit Available at Github
CVE-2026-2005 has a 12 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-2005.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-2005 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-2005
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
An Agent Skill that reviews and writes PostgreSQL/Supabase authentication code against a researched set of common and uncommon security mistakes - before it ships.
agent-skills agent-skills- authentication claude-code cloudflare codex cursor cybersecurity jwt postgres postgresql rls row-level-security security supabase
Shell
CVE-2026 Docker vulnerability reproduction labs
Dockerfile Shell Python PowerShell PHP Java Lua JavaScript Handlebars
None
None
Actively exploited CVE scanners from CISA KEV + Twitter trends - Drupal SQLi, PAN-OS RCE, Android ADBD, GHE RCE, BeyondTrust, Defender, and more
Python
May 2026 trending CVE scanners - PAN-OS, WordPress, BeyondTrust, GHE, ingress-nginx
Python
Audit CVE impact, patch status, remediation progress, and verification results across systems.
Makefile Go
PoC for CVE-2026-2005
Python
A home lab vulnerabillity assessment using Nessus Essentials. Scanned a local network of 4 machines (Windows Server, Windows 10, Ubuntu Server, Kali Linux and documented findings using CVSS v3.0 severity scoring
None
Shell
Hands-on vulnerability assessment project using Tenable Nessus Essentials on a home lab environment
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-2005 vulnerability anywhere in the article.
-
TheCyberThrone
CVE-2026-45659 — Microsoft SharePoint RCE
May 26, 2026OverviewDeserialization of untrusted data in Microsoft Office SharePoint allows an authenticated attacker to execute code remotely over a network. Any authenticated attacker with a minimum ... Read more
-
TheCyberThrone
CVE-2026-9082 – Drupal Core SQL Injection
May 24, 2026CVE-2026-9082 is a highly critical SQL injection vulnerability in Drupal core’s database abstraction API, specifically in the PostgreSQL EntityQuery condition handler. An unauthenticated, ... Read more
-
TheCyberThrone
CVE-2026-2005 | PostgreSQL pgcrypto — Heap Buffer Overflow
May 24, 2026Vulnerability SummaryCVE-2026-2005 is a heap buffer overflow vulnerability in the PostgreSQL pgcrypto extension. A ciphertext provider can trigger the overflow to execute arbitrary code as ... Read more
-
CybersecurityNews
PoC Exploit Released for 20-Year Old PostgreSQL RCE Vulnerability
A proof-of-concept (PoC) exploit has been publicly released for CVE-2026-2005, a critical remote code execution (RCE) vulnerability affecting PostgreSQL’s pgcrypto extension. The flaw, rooted in legac ... Read more
-
Daily CyberSecurity
PostgreSQL Fixes 5 Security Flaws Including Critical Code Execution Risks
The PostgreSQL Global Development Group has issued a critical alert for database administrators worldwide, releasing a comprehensive update to address five distinct security vulnerabilities. The patch ... Read more
The following table lists the changes that have been made to the
CVE-2026-2005 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jun. 30, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/o:redhat:enterprise_linux_eus:10.0'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS (v. 10.0)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:10.1', 'cpe:/o:redhat:enterprise_linux:10.2'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream (v. 10)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:8::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream (v. 8)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_aus:8.2::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream AUS (v. 8.2)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_aus:8.4::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream AUS (v.8.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus_long_life:8.4::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_aus:8.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream AUS (v.8.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:8.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.8.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_tus:8.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream TUS (v.8.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:8.8::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.8.8)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_tus:8.8::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream TUS (v.8.8)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:9.0::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.9.0)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:9.2::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.9.2)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.4::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS (v.9.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS (v.9.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:9::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream (v. 9)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux_eus:10.0'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:10.1', 'cpe:/o:redhat:enterprise_linux:10.2'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.4::crb'], 'vendor': 'Red Hat', 'product': 'Red Hat CodeReady Linux Builder EUS (v.9.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.6::crb'], 'vendor': 'Red Hat', 'product': 'Red Hat CodeReady Linux Builder EUS (v.9.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:9::crb'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:hummingbird:1'], 'vendor': 'Red Hat', 'product': 'Red Hat Hardened Images', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhui:5::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat Update Infrastructure 5', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:6'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 6', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 7', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:9'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 9', 'defaultStatus': 'affected'}] Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-120 Added Reference https://access.redhat.com/errata/RHSA-2026:19009 Added Reference https://access.redhat.com/errata/RHSA-2026:19010 Added Reference https://access.redhat.com/errata/RHSA-2026:3730 Added Reference https://access.redhat.com/errata/RHSA-2026:3887 Added Reference https://access.redhat.com/errata/RHSA-2026:3896 Added Reference https://access.redhat.com/errata/RHSA-2026:4024 Added Reference https://access.redhat.com/errata/RHSA-2026:4059 Added Reference https://access.redhat.com/errata/RHSA-2026:4063 Added Reference https://access.redhat.com/errata/RHSA-2026:4064 Added Reference https://access.redhat.com/errata/RHSA-2026:4074 Added Reference https://access.redhat.com/errata/RHSA-2026:4075 Added Reference https://access.redhat.com/errata/RHSA-2026:4110 Added Reference https://access.redhat.com/errata/RHSA-2026:4254 Added Reference https://access.redhat.com/errata/RHSA-2026:4441 Added Reference https://access.redhat.com/errata/RHSA-2026:4475 Added Reference https://access.redhat.com/errata/RHSA-2026:4504 Added Reference https://access.redhat.com/errata/RHSA-2026:4505 Added Reference https://access.redhat.com/errata/RHSA-2026:4506 Added Reference https://access.redhat.com/errata/RHSA-2026:4509 Added Reference https://access.redhat.com/errata/RHSA-2026:4515 Added Reference https://access.redhat.com/errata/RHSA-2026:4516 Added Reference https://access.redhat.com/errata/RHSA-2026:4518 Added Reference https://access.redhat.com/errata/RHSA-2026:4524 Added Reference https://access.redhat.com/errata/RHSA-2026:4528 Added Reference https://access.redhat.com/errata/RHSA-2026:4544 Added Reference https://access.redhat.com/errata/RHSA-2026:4546 Added Reference https://access.redhat.com/errata/RHSA-2026:4547 Added Reference https://access.redhat.com/errata/RHSA-2026:4548 Added Reference https://access.redhat.com/errata/RHSA-2026:4943 Added Reference https://access.redhat.com/errata/RHSA-2026:8756 Added Reference https://access.redhat.com/security/cve/CVE-2026-2005 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2439326 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2005.json -
CVE Modified by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'n/a', 'product': 'PostgreSQL', 'versions': [{'status': 'affected', 'version': '18', 'lessThan': '18.2', 'versionType': 'rpm'}, {'status': 'affected', 'version': '17', 'lessThan': '17.8', 'versionType': 'rpm'}, {'status': 'affected', 'version': '16', 'lessThan': '16.12', 'versionType': 'rpm'}, {'status': 'affected', 'version': '15', 'lessThan': '15.16', 'versionType': 'rpm'}, {'status': 'affected', 'version': '0', 'lessThan': '14.21', 'versionType': 'rpm'}], 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-2005', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-02-13T04:56:32.671453Z'} -
Initial Analysis by [email protected]
Feb. 20, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 18.0 up to (excluding) 18.2 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 14.0 up to (excluding) 14.21 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 15.0 up to (excluding) 15.16 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 16.0 up to (excluding) 16.12 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 17.0 up to (excluding) 17.8 Added Reference Type PostgreSQL: https://www.postgresql.org/support/security/CVE-2026-2005/ Types: Vendor Advisory -
New CVE Received by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Feb. 12, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-122 Added Reference https://www.postgresql.org/support/security/CVE-2026-2005/