CVE-2026-2005
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•HIGH•Score: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 1.32%• Percentile: 70%
Techniques & Countermeasures
- CWE-122•Heap-based Buffer Overflow
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-120•Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
Affected Systems
- alpine•postgresql15
< 15.16-r0
- alpine•postgresql16
< 16.12-r0 | < 16.12-r0 | < 16.12-r0
- alpine•postgresql17
< 17.8-r0 | < 17.8-r0 | < 17.8-r0 | < 17.8-r0
- alpine•postgresql18
< 18.2-r0 | < 18.2-r0
- chainguard•postgresql-13
< 13.23-r5
- wolfi•postgresql-13
< 13.23-r5
- debian•postgresql-13
< 13.23-0+deb11u2
- debian•postgresql-15
< 15.16-0+deb12u1
- debian•postgresql-17
< 17.8-0+deb13u1
- debian•postgresql-18
< 18.2-1
- postgresql•postgresql
≥ 14.0, < 14.21 | ≥ 15.0, < 15.16 | ≥ 16.0, < 16.12 | ≥ 17.0, < 17.8 | ≥ 18.0, < 18.2
References (36)
- https://www.postgresql.org/support/security/CVE-2026-2005/
- https://access.redhat.com/security/cve/CVE-2026-2005
- https://bugzilla.redhat.com/show_bug.cgi?id=2439326
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2005.json
- https://access.redhat.com/errata/RHSA-2026:4441
- https://access.redhat.com/errata/RHSA-2026:3887
- https://access.redhat.com/errata/RHSA-2026:19010
- https://access.redhat.com/errata/RHSA-2026:19009
- https://access.redhat.com/errata/RHSA-2026:4064
- https://access.redhat.com/errata/RHSA-2026:4024
- https://access.redhat.com/errata/RHSA-2026:4059
- https://access.redhat.com/errata/RHSA-2026:4063
- https://access.redhat.com/errata/RHSA-2026:4506
- https://access.redhat.com/errata/RHSA-2026:4509
- https://access.redhat.com/errata/RHSA-2026:4504
- https://access.redhat.com/errata/RHSA-2026:4505
- https://access.redhat.com/errata/RHSA-2026:4516
- https://access.redhat.com/errata/RHSA-2026:4075
- https://access.redhat.com/errata/RHSA-2026:4074
- https://access.redhat.com/errata/RHSA-2026:4515
- https://access.redhat.com/errata/RHSA-2026:4518
- https://access.redhat.com/errata/RHSA-2026:4254
- https://access.redhat.com/errata/RHSA-2026:4475
- https://access.redhat.com/errata/RHSA-2026:4548
- https://access.redhat.com/errata/RHSA-2026:4544
- https://access.redhat.com/errata/RHSA-2026:4524
- https://access.redhat.com/errata/RHSA-2026:4546
- https://access.redhat.com/errata/RHSA-2026:4547
- https://access.redhat.com/errata/RHSA-2026:4528
- https://access.redhat.com/errata/RHSA-2026:3896
- https://access.redhat.com/errata/RHSA-2026:4110
- https://access.redhat.com/errata/RHSA-2026:3730
- https://access.redhat.com/errata/RHSA-2026:8756
- https://access.redhat.com/errata/RHSA-2026:4943
- https://security-tracker.debian.org/tracker/CVE-2026-2005
- https://security.alpinelinux.org/vuln/CVE-2026-2005