cve.bz

CVE-2026-2005 postgresql postgresql: Heap-based Buffer Overflow

8.8 highEPSS 1.4%

High (8.8) in postgresql postgresql. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-02-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-2005 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-2005?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-2005?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-2005 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 14.0 before 14.21
postgresql:postgresqlfrom 15.0 before 15.16
postgresql:postgresqlfrom 16.0 before 16.12
postgresql:postgresqlfrom 17.0 before 17.8
postgresql:postgresqlfrom 18.0 before 18.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11postgresql-1313.23-0+deb11u2DLA-4524-1
Debian12postgresql-1515.16-0+deb12u1DEBIAN-CVE-2026-2005 DSA-6132-1
Debian13postgresql-1717.8-0+deb13u1DEBIAN-CVE-2026-2005 DSA-6133-1
Debian14postgresql-1818.2-1DEBIAN-CVE-2026-2005
Ubuntu20.04:LTSpostgresql-12no fix listedUBUNTU-CVE-2026-2005
Ubuntu22.04:LTSpostgresql-1414.22-0ubuntu0.22.04.1UBUNTU-CVE-2026-2005
Ubuntu24.04:LTSpostgresql-1616.13-0ubuntu0.24.04.1UBUNTU-CVE-2026-2005
Ubuntu25.10postgresql-1717.9-0ubuntu0.25.10.1UBUNTU-CVE-2026-2005
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2026-2005
UbuntuPro:16.04:LTSpostgresql-9.5no fix listedUBUNTU-CVE-2026-2005
UbuntuPro:18.04:LTSpostgresql-10no fix listedUBUNTU-CVE-2026-2005
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+19330+c97ddbdfRHSA-2026:4064
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+20664+9c30cf7fRHSA-2026:4024
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2026:4059
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.1-1.module+el8.10.0+22551+c0330dc9RHSA-2026:4063
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-7.module+el8.10.0+22214+9beb89d6RHSA-2026:4064
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.9.0+20664+9c30cf7fRHSA-2026:4024
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2026:4059
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:16.0-1.module+el8.10.0+20413+d8116364RHSA-2026:4063
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+19330+c97ddbdfRHSA-2026:4064
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+20664+9c30cf7fRHSA-2026:4024
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2026:4059
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:2.4.0-1.Final.module+el8.10.0+20413+d8116364RHSA-2026:4063
77 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1515.17-150200.5.54.1SUSE-SU-2026:0770-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1616.12-150200.5.38.1SUSE-SU-2026:0588-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1717.8-150200.5.22.1SUSE-SU-2026:0586-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1818.2-150200.5.6.1SUSE-SU-2026:0584-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morepostgresql1414.22-150200.5.69.1SUSE-SU-2026:0768-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 morepostgresql1717.9-150600.13.24.1SUSE-SU-2026:0883-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 morepostgresql1818.3-150600.13.8.1SUSE-SU-2026:0881-1
SUSELinux Enterprise Module for Legacy 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 morepostgresql1616.13-150600.16.30.1SUSE-SU-2026:0882-1
SUSELinux Enterprise Module for Legacy 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 1 morepostgresql1414.22-150600.16.28.1SUSE-SU-2026:0786-1
SUSELinux Enterprise Module for Legacy 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6postgresql1515.17-150600.16.28.1SUSE-SU-2026:0771-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5postgresql1414.21-3.66.1SUSE-SU-2026:0616-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5postgresql1515.16-3.50.1SUSE-SU-2026:0615-1
7 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6postgresql1414.22-150600.16.28.1SUSE-SU-2026:0786-1
openSUSELeap 15.6postgresql1515.17-150600.16.28.1SUSE-SU-2026:0771-1
openSUSELeap 15.6postgresql1616.13-150600.16.30.1SUSE-SU-2026:0882-1
openSUSELeap 15.6postgresql1717.9-150600.13.24.1SUSE-SU-2026:0883-1
openSUSELeap 15.6postgresql1818.3-150600.13.8.1SUSE-SU-2026:0881-1
openSUSELeap 16.0postgresql1414.21-160000.1.1openSUSE-SU-2026:20265-1
openSUSELeap 16.0postgresql1515.16-160000.1.1openSUSE-SU-2026:20266-1
openSUSELeap 16.0postgresql1616.13-160000.1.1openSUSE-SU-2026:20447-1
openSUSELeap 16.0postgresql1717.9-160000.1.1openSUSE-SU-2026:20388-1
openSUSELeap 16.0postgresql18, postgresql18-mini18.3-160000.1.1openSUSE-SU-2026:20408-1
openSUSETumbleweedpostgresql1414.21-1.1openSUSE-SU-2026:10190-1
openSUSETumbleweedpostgresql1515.16-1.1openSUSE-SU-2026:10191-1
3 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2026:4024
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2026:4024
AlmaLinux8pg_repack1.4.6-3.module_el8.9.0+3704+f1f917ceALSA-2026:4064
AlmaLinux8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2026:4059
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+3930+ecf33554ALSA-2026:4063
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux8pgaudit1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1ALSA-2026:4064
AlmaLinux8pgaudit1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1ALSA-2026:4064
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2026:4024
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2026:4024
AlmaLinux8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2026:4059
AlmaLinux8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2026:4063
23 more for AlmaLinux in the JSON.
Rocky Linux8pg_repack0:1.4.6-3.module+el8.10.0+1862+29bef648RLSA-2026:4024 RLSA-2026:4064
Rocky Linux8pg_repack0:1.4.6-3.module+el8.10.0+40055+b85d5ce2RLSA-2026:4024 RLSA-2026:4064
Rocky Linux8pg_repack0:1.4.6-3.module+el8.9.0+1594+4a6adae9RLSA-2026:4024 RLSA-2026:4064
Rocky Linux8pg_repack0:1.4.6-3.module+el8.9.0+1603+444d1b54RLSA-2026:4024 RLSA-2026:4064
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2026:4059
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2026:4059
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2026:4059
Rocky Linux8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2026:4059
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+1900+d7340343RLSA-2026:4063
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:4063
Rocky Linux8pgaudit0:1.4.0-7.module+el8.9.0+1735+a332307bRLSA-2026:4064
Rocky Linux8pgaudit0:1.5.0-1.module+el8.10.0+40055+b85d5ce2RLSA-2026:4024
30 more for Rocky Linux in the JSON.
Alpinev3.20, v3.21, v3.22 and 2 morepostgresql1616.12-r0ALPINE-CVE-2026-2005
Alpinev3.20, v3.22postgresql1515.16-r0ALPINE-CVE-2026-2005
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.8-r0ALPINE-CVE-2026-2005
Alpinev3.23, v3.24postgresql1818.2-r0ALPINE-CVE-2026-2005
Azure Linux2postgresql14.21-1AZL-77586
Azure Linux3postgresql16.12-1AZL-77417
Alpaquita23postgresql1515.16-r0BELL-CVE-2026-2005
Alpaquita25postgresql1717.8-r0BELL-CVE-2026-2005
Alpaquitastreampostgresql1818.2-r1BELL-CVE-2026-2005

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql16-0:16.13-1.el10_1Fixed 2026-03-05RHSA-2026:3887
Red Hat Enterprise Linux 10postgresql18-0:18.3-1.el10_2Fixed 2026-05-19RHSA-2026:19009
Red Hat Enterprise Linux 10postgresql16-0:16.13-1.el10_2Fixed 2026-05-19RHSA-2026:19010
Red Hat Enterprise Linux 10.0 Extended Update Supportpostgresql16-0:16.13-1.el10_0Fixed 2026-03-12RHSA-2026:4441
Red Hat Enterprise Linux 8postgresql:13-8100020260227180702.489197e6Fixed 2026-03-09RHSA-2026:4024
Red Hat Enterprise Linux 8postgresql:15-8100020260227221316.489197e6Fixed 2026-03-09RHSA-2026:4059
Red Hat Enterprise Linux 8postgresql:16-8100020260227221401.489197e6Fixed 2026-03-09RHSA-2026:4063
Red Hat Enterprise Linux 8postgresql:12-8100020260302082007.489197e6Fixed 2026-03-09RHSA-2026:4064
Red Hat Enterprise Linux 8.2 Advanced Update Supportpostgresql:12-8020020260309120440.4cda2c84Fixed 2026-03-12RHSA-2026:4506
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:13-8040020260305144728.522a0ee4Fixed 2026-03-12RHSA-2026:4504
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:12-8040020260306101701.522a0ee4Fixed 2026-03-12RHSA-2026:4509
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpostgresql:13-8040020260305144728.522a0ee4Fixed 2026-03-12RHSA-2026:4504
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpostgresql:12-8040020260306101701.522a0ee4Fixed 2026-03-12RHSA-2026:4509
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpostgresql:12-8060020260306113941.ad008a3aFixed 2026-03-12RHSA-2026:4505
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpostgresql:13-8060020260309111524.ad008a3aFixed 2026-03-12RHSA-2026:4516
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepostgresql:12-8060020260306113941.ad008a3aFixed 2026-03-12RHSA-2026:4505
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepostgresql:13-8060020260309111524.ad008a3aFixed 2026-03-12RHSA-2026:4516
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlOut of support scope
Red Hat Enterprise Linux 9postgresql:18/postgresqlAffected
21 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-2005.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • var77/CVE-2026-2005 Harbor Check: matches CVE 27 stars, Python, created
    PoC for CVE-2026-2005
  • dinosn/cve-2026-2005 Harbor Check: matches CVE 18 stars, Python, created
    CVE-2026-2005 — PostgreSQL pgcrypto heap overflow RCE exploit
  • open-flaw/CVE-2026-2005 Harbor Check: matches CVE 0 stars, JavaScript, created
  • M3str3/CVE-2026-2005 Harbor Check: matches CVE 0 stars, Python, created
    PoC for CVE-2026-2005 — heap buffer overflow in PostgreSQL pgcrypto (pgp_pub_decrypt). Oversized PGP session key bypasses bounds check in p…
  • stvm8/CVE-2026-2005_lab 0 stars, Shell, created

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON