cve.bz

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

8.2 highEPSS 0.5%

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

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

Severity

CVSS 3.1

8.2 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th 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: yes · Technical impact: partial, assessed 2026-02-12. 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-2007 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-2007?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-2007?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-2007 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 18.0 before 18.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14postgresql-1818.2-1DEBIAN-CVE-2026-2007
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2026-2007
Red Hatenterprise_linux:10.2postgresql18, postgresql18-docs, postgresql18-test and 24 more0:18.3-1.el10_2RHSA-2026:19009
Red Hathummingbird:1postgresql180:18.3-1.2.hum1RHSA-2026:8756
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 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 Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5postgresql1818.2-8.6.1SUSE-SU-2026:0585-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0postgresql1818.3-160000.1.1SUSE-SU-2026:20921-1
openSUSELeap 15.6postgresql1818.3-150600.13.8.1SUSE-SU-2026:0881-1
openSUSELeap 16.0postgresql18, postgresql18-mini18.3-160000.1.1openSUSE-SU-2026:20408-1
openSUSETumbleweedpostgresql1818.2-1.1openSUSE-SU-2026:10197-1
AlmaLinux10postgresql18, postgresql18-docs, postgresql18-test and 11 more18.3-1.el10_2ALSA-2026:19009
Rocky Linux10postgresql180:18.3-1.el10RLSA-2026:19009
Alpinev3.20, v3.21, v3.22postgresql1515.17-r0ALPINE-CVE-2026-2007
Alpinev3.20, v3.21, v3.22 and 2 morepostgresql1616.13-r0ALPINE-CVE-2026-2007
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.9-r0ALPINE-CVE-2026-2007
Alpinev3.23, v3.24postgresql1818.2-r0ALPINE-CVE-2026-2007
Alpaquita23postgresql1515.16-r0BELL-CVE-2026-2007
Alpaquita25postgresql1717.8-r0BELL-CVE-2026-2007
Alpaquitastreampostgresql1818.2-r1BELL-CVE-2026-2007

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; 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 10postgresql18-0:18.3-1.el10_2Fixed 2026-05-19RHSA-2026:19009
Red Hat Hardened Imagespostgresql18-main-18.3-1.2.hum1Fixed 2026-04-17RHSA-2026:8756
Red Hat Enterprise Linux 9postgresql18Affected

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-2007.

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