What’s Vulnerable › Vulnerabilities

CVE-2026-2007: PostgreSQL pg_trgm heap buffer overflow writes pattern onto server memory

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.

Affected products

How to fix

Upgrade to a fixed version: PostgreSQL 18.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-2007 or the next vulnerability affects your stack