Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
VulnerabilityCVE-2026-2007cvecve-2026-2007
Published: Thu Feb 12 2026 (02/12/2026, 13:00:11 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/19/2026, 14:15:58 UTC

Technical Analysis

CVE-2026-2007 is a heap-based buffer overflow vulnerability found in the pg_trgm module of PostgreSQL versions 18.0 and 18.1. The pg_trgm extension is used for text similarity searches and trigram indexing. The vulnerability arises when a specially crafted input string is processed, causing a heap buffer overflow due to insufficient bounds checking. While the attacker’s control over the overwritten memory is limited, the overflow can corrupt adjacent memory structures, potentially leading to denial of service or privilege escalation within the database environment. The flaw can be exploited remotely over the network without authentication or user interaction, making it particularly dangerous. The CVSS 3.1 score of 8.2 indicates high severity, with network attack vector, low attack complexity, no privileges required, and no user interaction needed. The impact affects integrity and availability but not confidentiality directly. No public exploits have been reported yet, but the vulnerability’s nature and ease of exploitation make it a critical concern for PostgreSQL users. The PostgreSQL development team has acknowledged the issue, and patches are expected to be released promptly. Until patched, organizations should consider mitigating controls to limit exposure.

Potential Impact

The vulnerability allows remote attackers to cause heap corruption in PostgreSQL servers running affected versions, potentially leading to denial of service by crashing the database or executing arbitrary code with database process privileges. This can compromise data integrity and availability, disrupting critical applications relying on PostgreSQL. Although direct confidentiality breaches are not indicated, privilege escalation could enable attackers to gain higher database privileges, increasing the risk of data manipulation or further lateral movement within the network. The ease of exploitation without authentication and user interaction broadens the attack surface, making internet-facing PostgreSQL instances particularly vulnerable. Organizations using PostgreSQL 18.x in production environments, especially those with sensitive or critical data, face significant operational and security risks if this vulnerability is exploited.

Mitigation Recommendations

1. Apply official patches from PostgreSQL as soon as they become available to remediate the vulnerability. 2. Until patches are released, restrict network access to PostgreSQL servers by implementing firewall rules that limit connections to trusted hosts and networks. 3. Enforce the principle of least privilege by limiting database user permissions, especially for users that can invoke pg_trgm functions. 4. Monitor database logs and system behavior for signs of anomalous activity or crashes that could indicate exploitation attempts. 5. Disable or remove the pg_trgm extension if it is not required for your applications to reduce the attack surface. 6. Employ runtime protections such as Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP) on database servers to mitigate exploitation impact. 7. Conduct regular security assessments and vulnerability scans on PostgreSQL deployments to detect outdated versions and configuration weaknesses.

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

Threat ID: 698dd351c9e1ff5ad8d5def8

Added to database: 2/12/2026, 1:19:13 PM

Last enriched: 2/19/2026, 2:15:58 PM

Last updated: 3/29/2026, 2:38:36 PM

Views: 2586

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