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.6, 17.11, 16.15, 15.19, and 14.24 are affected.
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Postgresql | Postgresql | 14.0 (including) | 14.24 (excluding) |
| Postgresql | Postgresql | 15.0 (including) | 15.19 (excluding) |
| Postgresql | Postgresql | 16.0 (including) | 16.15 (excluding) |
| Postgresql | Postgresql | 17.0 (including) | 17.11 (excluding) |
| Postgresql | Postgresql | 18.0 (including) | 18.5 (excluding) |
| Red Hat Enterprise Linux 10 | RedHat | postgresql18-0:18.6-1.el10_2 | * |
| Red Hat Enterprise Linux 10 | RedHat | postgresql16-0:16.15-1.el10_2 | * |
| Red Hat Enterprise Linux 8 | RedHat | postgresql:16-8100020260910192321.489197e6 | * |
| Red Hat Enterprise Linux 8 | RedHat | postgresql:15-8100020260906175012.489197e6 | * |
| Red Hat Enterprise Linux 8 | RedHat | postgresql:12-8100020260917081510.489197e6 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | postgresql:15-8080020260921162003.63b34585 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | postgresql:15-8080020260921162003.63b34585 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql:16-9080020260907191505.rhel9 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql:18-9080020260914093252.rhel9 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql-0:13.23-6.el9_8 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql:15-9080020260903073937.rhel9 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | postgresql:15-9020020260917092006.rhel9 | * |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | RedHat | postgresql:15-9040020260917091622.rhel9 | * |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | RedHat | postgresql:16-9040020260922062609.rhel9 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | postgresql:15-9060020260917102335.rhel9 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | postgresql:16-9060020260921091101.rhel9 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/rhua-rhel9:1790242004 | * |
| Postgresql-10 | Ubuntu | upstream | * |
| Postgresql-12 | Ubuntu | upstream | * |
| Postgresql-14 | Ubuntu | jammy | * |
| Postgresql-16 | Ubuntu | noble | * |
| Postgresql-18 | Ubuntu | devel | * |
| Postgresql-18 | Ubuntu | resolute | * |
| Postgresql-9.3 | Ubuntu | upstream | * |
| Postgresql-9.5 | Ubuntu | upstream | * |