Stack buffer overflow in PostgreSQL module refint allows an unprivileged database user to execute arbitrary code as the operating system user running the database. A distinct attack is possible if the application declares a user-controlled column as a refint cascade primary key and facilitates user-controlled updates to that column. In that case, a SQL injection allows a primary key update value provider to execute arbitrary SQL as the database user performing the primary key update. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Postgresql | Postgresql | * | 14.23 (excluding) |
| Postgresql | Postgresql | 15.0 (including) | 15.18 (excluding) |
| Postgresql | Postgresql | 16.0 (including) | 16.14 (excluding) |
| Postgresql | Postgresql | 17.0 (including) | 17.10 (excluding) |
| Postgresql | Postgresql | 18.0 (including) | 18.4 (excluding) |
| Red Hat Enterprise Linux 10 | RedHat | postgresql18-0:18.4-1.el10_2 | * |
| Red Hat Enterprise Linux 10 | RedHat | postgresql16-0:16.14-1.el10_2 | * |
| Red Hat Enterprise Linux 10.0 Extended Update Support | RedHat | postgresql16-0:16.14-1.el10_0 | * |
| Red Hat Enterprise Linux 8 | RedHat | postgresql:15-8100020260605152259.489197e6 | * |
| Red Hat Enterprise Linux 8 | RedHat | postgresql:16-8100020260530205218.489197e6 | * |
| Red Hat Enterprise Linux 8 | RedHat | postgresql:13-8100020260605152256.489197e6 | * |
| Red Hat Enterprise Linux 8 | RedHat | postgresql:12-8100020260605152253.489197e6 | * |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | RedHat | postgresql:12-8040020260624104459.522a0ee4 | * |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | RedHat | postgresql:13-8040020260630100922.522a0ee4 | * |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | RedHat | postgresql:12-8040020260624104459.522a0ee4 | * |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | RedHat | postgresql:13-8040020260630100922.522a0ee4 | * |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | RedHat | postgresql:12-8060020260623094704.ad008a3a | * |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | RedHat | postgresql:13-8060020260625065744.ad008a3a | * |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | RedHat | postgresql:12-8060020260623094704.ad008a3a | * |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | RedHat | postgresql:13-8060020260625065744.ad008a3a | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | postgresql:15-8080020260615085052.63b34585 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | postgresql:12-8080020260626093604.63b34585 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | postgresql:13-8080020260709122729.63b34585 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | postgresql:15-8080020260615085052.63b34585 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | postgresql:12-8080020260626093604.63b34585 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | postgresql:13-8080020260709122729.63b34585 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql:16-9080020260605131007.rhel9 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql:18-9080020260605125734.rhel9 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql-0:13.23-3.el9_8 | * |
| Red Hat Enterprise Linux 9 | RedHat | postgresql:15-9080020260605124405.rhel9 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | postgresql-0:13.23-1.el9_2.2 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | postgresql:15-9020020260625101129.rhel9 | * |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | RedHat | postgresql:16-9040020260612132455.rhel9 | * |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | RedHat | postgresql-0:13.23-1.el9_4.2 | * |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | RedHat | postgresql:15-9040020260616071806.rhel9 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | postgresql:16-9060020260612084605.rhel9 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | postgresql-0:13.23-1.el9_6.2 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | postgresql:15-9060020260622062902.rhel9 | * |
| Red Hat Hardened Images | RedHat | postgresql17-main-17.10-0.1.hum1 | * |
| Red Hat Hardened Images | RedHat | postgresql18-main-18.4-0.1.hum1 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/rhua-rhel9:1784795076 | * |
| Postgresql-10 | Ubuntu | upstream | * |
| Postgresql-12 | Ubuntu | upstream | * |
| Postgresql-14 | Ubuntu | jammy | * |
| Postgresql-16 | Ubuntu | noble | * |
| Postgresql-17 | Ubuntu | questing | * |
| Postgresql-18 | Ubuntu | devel | * |
| Postgresql-18 | Ubuntu | resolute | * |
| Postgresql-9.3 | Ubuntu | upstream | * |
| Postgresql-9.5 | Ubuntu | upstream | * |