CVE-2026-6637
published high CVSS 3.1 · 8.8PostgreSQL refint allows stack buffer overflow and SQL injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL18 to < 18.4 · 17 to < 17.10 · 16 to < 16.14 · 15 to < 15.18 · 0 to < 14.23 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3344 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2026-024 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1766 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | postgresql-test-rpm-macros | Advisory build | 16.14-1.el10_2 | ALSA-2026:27743 |
| AlmaLinux | 10 | postgresql18-test-rpm-macros | Advisory build | 18.4-1.el10_2 | ALSA-2026:27742 |
Show 101 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1767 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1768 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1780 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2026:28208 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+3095+ee60d910 | ALSA-2026:28208 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2026:28999 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2026:26181 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.5.1-1.module_el8.10.0+3930+ecf33554 | ALSA-2026:28143 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.5.1-1.module_el8.10.0+4125+ceaf7d1b | ALSA-2026:28143 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.5.1-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 | ALSA-2026:28999 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2026:28999 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2026:28208 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2026:28208 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2026:26181 |
| AlmaLinux | 8 | pgaudit | Advisory build | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2026:28143 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2026:28208 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+3095+ee60d910 | ALSA-2026:28208 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.9.0+3704+f1f917ce | ALSA-2026:28999 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el8.9.0+3706+885c732e | ALSA-2026:26181 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 13.23-3.module_el8.10.0+4198+7a62a2ce | ALSA-2026:28208 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 15.18-1.module_el8.10.0+4195+4569d728 | ALSA-2026:26181 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 16.14-1.module_el8.10.0+4199+bf03c564 | ALSA-2026:28143 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.4.8-2.module_el9.5.0+119+18833d03 | ALSA-2026:28037 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.1-1.module_el9.6.0+146+c54fdeca | ALSA-2026:26203 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.3-1.module_el9.8.0+234+5456f35d | ALSA-2026:26204 |
| AlmaLinux | 9 | pgaudit | Advisory build | 1.7.0-1.module_el9.3.0+52+21733919 | ALSA-2026:28037 |
| AlmaLinux | 9 | pgaudit | Advisory build | 16.0-1.module_el9.4.0+66+eb9878bc | ALSA-2026:26203 |
| AlmaLinux | 9 | pgaudit | Advisory build | 18.0-1.module_el9.8.0+234+5456f35d | ALSA-2026:26204 |
| AlmaLinux | 9 | pgvector | Advisory build | 0.6.2-2.module_el9.6.0+167+4e561146 | ALSA-2026:26203 |
| AlmaLinux | 9 | pgvector | Advisory build | 0.8.1-1.module_el9.8.0+234+5456f35d | ALSA-2026:26204 |
| AlmaLinux | 9 | postgis | Advisory build | 3.5.3-5.module_el9.8.0+236+2d3cbd4c | ALSA-2026:26203 |
| AlmaLinux | 9 | postgis | Advisory build | 3.6.1-2.module_el9.8.0+239+6fb51d38 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgis-client | Advisory build | 3.5.3-5.module_el9.8.0+236+2d3cbd4c | ALSA-2026:26203 |
| AlmaLinux | 9 | postgis-client | Advisory build | 3.6.1-2.module_el9.8.0+239+6fb51d38 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgis-docs | Advisory build | 3.5.3-5.module_el9.8.0+236+2d3cbd4c | ALSA-2026:26203 |
| AlmaLinux | 9 | postgis-docs | Advisory build | 3.6.1-2.module_el9.8.0+239+6fb51d38 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgis-upgrade | Advisory build | 3.5.3-5.module_el9.8.0+236+2d3cbd4c | ALSA-2026:26203 |
| AlmaLinux | 9 | postgis-upgrade | Advisory build | 3.6.1-2.module_el9.8.0+239+6fb51d38 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgis-utils | Advisory build | 3.5.3-5.module_el9.8.0+236+2d3cbd4c | ALSA-2026:26203 |
| AlmaLinux | 9 | postgis-utils | Advisory build | 3.6.1-2.module_el9.8.0+239+6fb51d38 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el9.3.0+52+21733919 | ALSA-2026:28037 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc | ALSA-2026:26203 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 3.3.1-1.Final.module_el9.8.0+234+5456f35d | ALSA-2026:26204 |
| AlmaLinux | 9 | postgresql | Advisory build | 13.23-3.el9_8 | ALSA-2026:27741 |
| AlmaLinux | 9 | postgresql | Advisory build | 15.18-1.module_el9.8.0+267+7c71b4a4 | ALSA-2026:28037 |
| AlmaLinux | 9 | postgresql | Advisory build | 16.14-1.module_el9.8.0+266+1e661e97 | ALSA-2026:26203 |
| AlmaLinux | 9 | postgresql | Advisory build | 18.4-2.module_el9.8.0+280+5ad12178 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 13.23-3.el9_8 | ALSA-2026:27741 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 15.18-1.module_el9.8.0+267+7c71b4a4 | ALSA-2026:28037 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 16.14-1.module_el9.8.0+266+1e661e97 | ALSA-2026:26203 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 18.4-2.module_el9.8.0+280+5ad12178 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 13.23-3.el9_8 | ALSA-2026:27741 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 15.18-1.module_el9.8.0+267+7c71b4a4 | ALSA-2026:28037 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 16.14-1.module_el9.8.0+266+1e661e97 | ALSA-2026:26203 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 18.4-2.module_el9.8.0+280+5ad12178 | ALSA-2026:26204 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 13.23-3.el9_8 | ALSA-2026:27741 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 15.18-1.module_el9.8.0+267+7c71b4a4 | ALSA-2026:28037 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 16.14-1.module_el9.8.0+266+1e661e97 | ALSA-2026:26203 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 18.4-2.module_el9.8.0+280+5ad12178 | ALSA-2026:26204 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Showing the first 100 linked advisory records.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 18 to < 18.4 (affected · rpm)17 to < 17.10 (affected · rpm)16 to < 16.14 (affected · rpm)15 to < 15.18 (affected · rpm)0 to < 14.23 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
2- CWE-121 Stack-based Buffer Overflow
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
1Provider assertions
2PostgreSQL · cna
PostgreSQL refint allows stack buffer overflow and SQL injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c96f4f56b165fa0cf7772f8edd0eeaaf99421a22119e94b794eb752040bb2e1e
- Ingested
- 23 Sep 2026, 09:28:47 UTC
- Source record
- Official CVE record