CVE-2026-2007
published high CVSS 3.1 · 8.2PostgreSQL pg_trgm heap buffer overflow writes pattern onto server memory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL18 to < 18.2 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Red Hat Enterprise Linux | 10 | postgresql180:18.3-1.el10_2 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | postgresql18-mainRed Hat Hardened Images · 18.3-1.2.hum1 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat Enterprise Linux | 9 | postgresql18 | Affected | Not stated | redhat-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 10 | postgresql18 | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| Alpine Linux | edge | postgresql18 | Fixed | 18.2-r0 | Package fix record |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | postgresql18aarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql18aarch64 | Advisory build | 18.3-1.el10_2 | RHSA-2026:19009 |
| SUSE / openSUSE | SLE-15-SP6 | postgresql18aarch64 | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| Alpine Linux | v3.23 | postgresql18 | Fixed | 18.2-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql18 | Fixed | 18.2-r0 | Package fix record |
| Oracle Linux | 10 | postgresql18x86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql18ppc64le | Advisory build | 18.3-1.el10_2 | RHSA-2026:19009 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql18s390x | Advisory build | 18.3-1.el10_2 | RHSA-2026:19009 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql18src | Advisory build | 18.3-1.el10_2 | RHSA-2026:19009 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql18x86_64 | Advisory build | 18.3-1.el10_2 | RHSA-2026:19009 |
| SUSE / openSUSE | SLE-15-SP6 | postgresql18ppc64le | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | SLE-15-SP6 | postgresql18s390x | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | SLE-15-SP6 | postgresql18x86_64 | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | SLE-15-SP7 | postgresql18aarch64 | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | SLE-15-SP7 | postgresql18ppc64le | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | SLE-15-SP7 | postgresql18s390x | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | SLE-15-SP7 | postgresql18x86_64 | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | SLE-16 | postgresql18aarch64 | Advisory build | 18.3-160000.1.1 | SUSE-SU-2026:20921-1 |
| SUSE / openSUSE | SLE-16 | postgresql18ppc64le | Advisory build | 18.3-160000.1.1 | SUSE-SU-2026:20921-1 |
| SUSE / openSUSE | SLE-16 | postgresql18s390x | Advisory build | 18.3-160000.1.1 | SUSE-SU-2026:20921-1 |
| SUSE / openSUSE | SLE-16 | postgresql18x86_64 | Advisory build | 18.3-160000.1.1 | SUSE-SU-2026:20921-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | postgresql18aarch64 | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | postgresql18ppc64le | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | postgresql18s390x | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | postgresql18x86_64 | Advisory build | 18.3-150600.13.8.1 | SUSE-SU-2026:0881-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | postgresql18aarch64 | Advisory build | 18.3-160000.1.1 | OPENSUSE-SU-2026:20408-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | postgresql18ppc64le | Advisory build | 18.3-160000.1.1 | OPENSUSE-SU-2026:20408-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | postgresql18s390x | Advisory build | 18.3-160000.1.1 | OPENSUSE-SU-2026:20408-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | postgresql18x86_64 | Advisory build | 18.3-160000.1.1 | OPENSUSE-SU-2026:20408-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql18aarch64 | Advisory build | 18.2-1.1 | OPENSUSE-SU-2026:10197-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql18ppc64le | Advisory build | 18.2-1.1 | OPENSUSE-SU-2026:10197-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql18s390x | Advisory build | 18.2-1.1 | OPENSUSE-SU-2026:10197-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql18x86_64 | Advisory build | 18.2-1.1 | OPENSUSE-SU-2026:10197-1 |
| AlmaLinux | 10 | postgresql18-contrib | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-docs | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-plperl | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-plpython3 | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-private-devel | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-private-libs | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-server | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-server-devel | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-static | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-test | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-test-rpm-macros | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-upgrade | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| AlmaLinux | 10 | postgresql18-upgrade-devel | Advisory build | 18.3-1.el10_2 | ALSA-2026:19009 |
| Alpine Linux | edge | postgresql17 | Fixed | 17.8-r0 | Package fix record |
| Alpine Linux | edge | postgresql17 | Fixed | 17.9-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 15.16-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 15.17-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql16 | Fixed | 16.12-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql16 | Fixed | 16.13-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql15 | Fixed | 15.17-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql16 | Fixed | 16.12-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql16 | Fixed | 16.13-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql17 | Fixed | 17.8-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql17 | Fixed | 17.9-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql15 | Fixed | 15.16-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql15 | Fixed | 15.17-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql16 | Fixed | 16.12-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql16 | Fixed | 16.13-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql17 | Fixed | 17.8-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql17 | Fixed | 17.9-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql16 | Fixed | 16.12-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql16 | Fixed | 16.13-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql17 | Fixed | 17.8-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql17 | Fixed | 17.9-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql16 | Fixed | 16.12-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql16 | Fixed | 16.13-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql17 | Fixed | 17.8-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql17 | Fixed | 17.9-r0 | Package fix record |
| Oracle Linux | 10 | postgresql18-contribaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-contribx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-docsaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-docsx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-plperlaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-plperlx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-plpython3aarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-plpython3x86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-private-develaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-private-develx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-private-libsaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-private-libsx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-serveraarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-serverx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-server-develaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-server-develx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-staticaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-staticx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-testaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-testx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-test-rpm-macrosaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-test-rpm-macrosx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-upgradeaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-upgradex86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-upgrade-develaarch64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Oracle Linux | 10 | postgresql18-upgrade-develx86_64 | Advisory build | 0:18.3-1.0.1.el10_2 | ELSA-2026-19009 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql18-contribaarch64 | Advisory build | 18.3-1.el10_2 | RHSA-2026:19009 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
A heap based buffer overflow has been discovered in postgresql. This heap buffer overflow is 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.2 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 18 to < 18.2 (affected · rpm)Default: unaffected | PostgreSQL · cna |
| Red Hat | Red Hat Enterprise Linux 10 | 0:18.3-1.el10_2 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Hardened Images | 18.3-1.2.hum1 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-122 Heap-based Buffer Overflow
- CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
6- https://access.redhat.com/errata/RHSA-2026:19009
- https://access.redhat.com/errata/RHSA-2026:8756
- https://access.redhat.com/security/cve/CVE-2026-2007
- RHBZ#2439320 https://bugzilla.redhat.com/show_bug.cgi?id=2439320
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2007.json
- https://www.postgresql.org/support/security/CVE-2026-2007/
Provider assertions
3PostgreSQL · cna
PostgreSQL pg_trgm heap buffer overflow writes pattern onto server memory
redhat-SADP · adp
postgresql: PostgreSQL pg_trgm heap buffer overflow writes pattern onto server memory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cca471cdc4893e3bc00b14fc19477331e7a87a0cf3f46483773221ce3892aee1
- Ingested
- 23 Sep 2026, 09:08:32 UTC
- Source record
- Official CVE record