CVE-2026-14664: Heap-based Buffer Overflow in PostgreSQL
Heap buffer overflow in PostgreSQL regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pg_wchar. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
AI Analysis
Technical Summary
This vulnerability involves a heap buffer overflow in PostgreSQL's regexp functionality, which can be triggered by text that bypasses encoding validation and is processed through pg_wchar, causing unexpected data growth. This flaw enables arbitrary code execution as the OS user running the database. It is related to a previous vulnerability (CVE-2026-2006) but distinct in its cause. Affected versions include all releases prior to 18.5, 17.11, 16.15, 15.19, and 14.24. No official patch or remediation guidance is currently confirmed.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code with the privileges of the operating system user running PostgreSQL, potentially leading to full system compromise. The vulnerability affects confidentiality, integrity, and availability, as indicated by the CVSS vector (C:H/I:H/A:H). There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing untrusted or specially crafted regular expressions that could trigger this vulnerability. Monitor PostgreSQL vendor communications for updates and apply patches promptly once available.
CVE-2026-14664: Heap-based Buffer Overflow in PostgreSQL
Description
Heap buffer overflow in PostgreSQL regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pg_wchar. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
CVSS v3.1
Score 8.8high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves a heap buffer overflow in PostgreSQL's regexp functionality, which can be triggered by text that bypasses encoding validation and is processed through pg_wchar, causing unexpected data growth. This flaw enables arbitrary code execution as the OS user running the database. It is related to a previous vulnerability (CVE-2026-2006) but distinct in its cause. Affected versions include all releases prior to 18.5, 17.11, 16.15, 15.19, and 14.24. No official patch or remediation guidance is currently confirmed.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code with the privileges of the operating system user running PostgreSQL, potentially leading to full system compromise. The vulnerability affects confidentiality, integrity, and availability, as indicated by the CVSS vector (C:H/I:H/A:H). There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing untrusted or specially crafted regular expressions that could trigger this vulnerability. Monitor PostgreSQL vendor communications for updates and apply patches promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-07-03T20:28:09.038Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7dc615bf8831d5393e527f
Added to database: 08/13/2026, 13:26:45 UTC
Last enriched: 08/13/2026, 16:13:08 UTC
Last updated: 08/13/2026, 23:40:59 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.