CVE-2026-2005

PostgreSQL pgcrypto heap buffer overflow executes arbitrary code

Published Feb 12, 2026 CVSS 3.1 · 8.8 High EPSS 1.4% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A heap buffer overflow in the PostgreSQL pgcrypto extension permits an attacker who can supply ciphertext to the database to execute arbitrary code as the operating system user running PostgreSQL.

Affected Systems

PostgreSQL versions earlier than 18.2, 17.8, 16.12, 15.16, and 14.21 are affected; affected installations must upgrade to the corresponding release or newer.

Risk and Exploitability

The likely attack vector is the delivery of specially crafted ciphertext to pgcrypto, which triggers the overflow; an attacker needs database access to send such data. The flaw carries a CVSS score of 8.8, indicating high severity, while the EPSS score of <1% suggests a relatively low current exploitation probability. The vulnerability is not listed in the CISA KEV catalog, but successful exploitation would allow code execution with the privileges of the database process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to version 18.2 or newer, 17.8 or newer, 16.12 or newer, 15.16 or newer, or 14.21 or newer to remove the vulnerability.
  • If an upgrade cannot be performed immediately, disable the pgcrypto extension or revoke its usage privileges to prevent the overflow from being triggered.
  • Limit database roles so that only trusted users can invoke pgcrypto functions, reducing the window of opportunity for an attacker.

Generated by OpenCVE AI on April 17, 2026 at 20:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4524-1 postgresql-13 security update
Debian DSA Debian DSA DSA-6132-1 postgresql-15 security update
Debian DSA Debian DSA DSA-6133-1 postgresql-17 security update
Ubuntu USN Ubuntu USN USN-8072-1 PostgreSQL vulnerabilities
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:19009 cve-icon
https://access.redhat.com/errata/RHSA-2026:19010 cve-icon
https://access.redhat.com/errata/RHSA-2026:3730 cve-icon
https://access.redhat.com/errata/RHSA-2026:3887 cve-icon
https://access.redhat.com/errata/RHSA-2026:3896 cve-icon
https://access.redhat.com/errata/RHSA-2026:4024 cve-icon
https://access.redhat.com/errata/RHSA-2026:4059 cve-icon
https://access.redhat.com/errata/RHSA-2026:4063 cve-icon
https://access.redhat.com/errata/RHSA-2026:4064 cve-icon
https://access.redhat.com/errata/RHSA-2026:4074 cve-icon
https://access.redhat.com/errata/RHSA-2026:4075 cve-icon
https://access.redhat.com/errata/RHSA-2026:4110 cve-icon
https://access.redhat.com/errata/RHSA-2026:4254 cve-icon
https://access.redhat.com/errata/RHSA-2026:4441 cve-icon
https://access.redhat.com/errata/RHSA-2026:4475 cve-icon
https://access.redhat.com/errata/RHSA-2026:4504 cve-icon
https://access.redhat.com/errata/RHSA-2026:4505 cve-icon
https://access.redhat.com/errata/RHSA-2026:4506 cve-icon
https://access.redhat.com/errata/RHSA-2026:4509 cve-icon
https://access.redhat.com/errata/RHSA-2026:4515 cve-icon
https://access.redhat.com/errata/RHSA-2026:4516 cve-icon
https://access.redhat.com/errata/RHSA-2026:4518 cve-icon
https://access.redhat.com/errata/RHSA-2026:4524 cve-icon
https://access.redhat.com/errata/RHSA-2026:4528 cve-icon
https://access.redhat.com/errata/RHSA-2026:4544 cve-icon
https://access.redhat.com/errata/RHSA-2026:4546 cve-icon
https://access.redhat.com/errata/RHSA-2026:4547 cve-icon
https://access.redhat.com/errata/RHSA-2026:4548 cve-icon
https://access.redhat.com/errata/RHSA-2026:4943 cve-icon
https://access.redhat.com/errata/RHSA-2026:8756 cve-icon
https://access.redhat.com/security/cve/CVE-2026-2005 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2439326 cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2026-2005 cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2005.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2026-2005 cve-icon
https://www.postgresql.org/support/security/CVE-2026-2005/ cve-icon cve-icon cve-icon
History
Type Values Removed Values Added
CPEs cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values 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.
Title PostgreSQL pgcrypto heap buffer overflow executes arbitrary code
Weaknesses CWE-122
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Jul 15, 2026, 1:20 AM
Reserved
Feb 5, 2026, 6:17 PM
Status
Modified
Published
Feb 12, 2026, 2:16 PM
Modified
Jul 15, 2026, 2:19 AM
Severity
Important
Public date
Feb 12, 2026, 1:00 PM