Skip to main content
EPSS 0.5%top 60%

CVE-2026-2007: Heap-based Buffer Overflow in PostgreSQL

0
High
Published: 02/16/2026 (02/16/2026, 16:03:46 UTC)
Source: CVE Database V5
Product: PostgreSQL

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 v3.1

Score 8.2high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Affected software

Affected versions
18

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 08:35:45 UTC

Technical Analysis

The vulnerability CVE-2026-2007 involves a heap buffer overflow in the PostgreSQL pg_trgm extension. A crafted input string can trigger the overflow, causing writes onto server memory. Although the attacker has limited control over the exact bytes written, the possibility of privilege escalation has not been ruled out. The issue affects PostgreSQL versions 18.0 and 18.1. Red Hat advisories confirm the vulnerability and provide updated packages that fix the flaw. The CVSS v3.1 base score is 8.2, indicating high severity, with network attack vector, low attack complexity, no privileges required, no user interaction, and impact on integrity and availability.

Potential Impact

Successful exploitation of this heap buffer overflow can lead to memory corruption on the PostgreSQL server, potentially resulting in denial of service or privilege escalation. The attacker does not require prior privileges or user interaction to exploit this vulnerability. The integrity and availability of the database server can be compromised. No known exploits in the wild have been reported at this time.

Mitigation Recommendations

Red Hat has released security updates for PostgreSQL 18 packages that address this vulnerability. Users should apply the official patches provided by Red Hat as detailed in their advisories (e.g., RHSA-2026:19009). Since this is not a cloud service, remediation requires updating the affected PostgreSQL packages on the affected systems. Patch status is confirmed by the vendor advisories and updates are available. No alternative mitigations are indicated by the vendor.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PostgreSQL
Date Reserved
2026-02-05T18:17:56.928Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-2007","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19009","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8756","vendor":"Red Hat"}]

Threat ID: 698dd351c9e1ff5ad8d5def8

Added to database: 02/12/2026, 13:19:13 UTC

Last enriched: 07/15/2026, 08:35:45 UTC

Last updated: 09/10/2026, 19:36:53 UTC

Views: 3034

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses