CVE-2026-2007
Vulnerability Summary
Timeline
Description
Heap buffer overflow in PostgreSQL pg_trgm allows a database user to achieve unknown impacts via a crafted input string. The attacker has limited control over the byte patterns to be written, but we have not ruled out the viability of attacks that lead to privilege escalation. PostgreSQL 18.1 and 18.0 are affected.
CVSS Metrics
- v3.1•HIGH•Score: 8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS Trends
Current EPSS score: 0.50%• Percentile: 42%
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.17-r0
- alpine•postgresql16
< 16.13-r0 | < 16.13-r0 | < 16.13-r0
- alpine•postgresql17
< 17.9-r0 | < 17.9-r0 | < 17.9-r0 | < 17.9-r0
- alpine•postgresql18
< 18.2-r0 | < 18.2-r0
- debian•postgresql-18
< 18.2-1
- postgresql•postgresql
≥ 18.0, < 18.2
References (8)
- https://www.postgresql.org/support/security/CVE-2026-2007/
- https://access.redhat.com/security/cve/CVE-2026-2007
- https://bugzilla.redhat.com/show_bug.cgi?id=2439320
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2007.json
- https://access.redhat.com/errata/RHSA-2026:19009
- https://access.redhat.com/errata/RHSA-2026:8756
- https://security.alpinelinux.org/vuln/CVE-2026-2007
- https://security-tracker.debian.org/tracker/CVE-2026-2007