CVE-2026-6637 affects PostgreSQL's contrib/spi "refint" module, which implements referential-integrity triggers. The vulnerability includes a stack buffer overflow caused by unsafe handling of attacker-influenced input such as an overly long column name in refint processing. An unprivileged database user can trigger this flaw and achieve arbitrary code execution in the PostgreSQL server process, resulting in execution as the operating system account running PostgreSQL. A distinct, separate attack path exists in refint cascade primary-key handling: if an application defines a user-controlled column as a refint cascade primary key and permits attacker-controlled updates to that column, the update path can be abused for SQL injection, allowing execution of arbitrary SQL in the security context of the database user performing the primary-key update. Affected versions are PostgreSQL before 18.4, 17.10, 16.14, 15.18, and 14.23.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
29 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A PostgreSQL vulnerability affecting contrib/spi, described as involving prevention of SQL injection and buffer overruns.
A critical vulnerability in PostgreSQL's refint module involving a stack buffer overflow that can allow arbitrary code execution as the PostgreSQL OS account, and in a separate scenario can trigger SQL injection via crafted primary key updates.
A stack buffer overflow vulnerability in PostgreSQL's refint module that can allow an unprivileged database user to execute arbitrary code as the operating system user running the database. The advisory also describes a distinct SQL-injection-related attack path involving user-controlled refint cascade primary keys.
A PostgreSQL refint module vulnerability enabling stack buffer overflow and a distinct SQL injection path, potentially leading to arbitrary code execution or arbitrary SQL execution.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.