{"id":"CVE-2026-6637","year":2026,"sequence":6637,"component":"contrib module","score":8.8,"cvss_version":"3.0","vector":"AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","first_published":"2026-05-14","source_url":"https://www.postgresql.org/support/security/CVE-2026-6637/","facts":{"affected":{"14":"14","15":"15","16":"16","17":"17","18":"18"},"affected_ranges":[{"from":"0","until":"14.23"},{"from":"15","until":"15.18"},{"from":"16","until":"16.14"},{"from":"17","until":"17.10"},{"from":"18","until":"18.4"}],"cna_url":"https://cveawg.mitre.org/api/cve/CVE-2026-6637","component":"contrib module","cvss_version":"3.0","description_en":"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.","first_published":"2026-05-14","fixed":{"14":"14.23","15":"15.18","16":"16.14","17":"17.10","18":"18.4"},"id":"CVE-2026-6637","introduced":{},"published":{"14":"2026-05-14","15":"2026-05-14","16":"2026-05-14","17":"2026-05-14","18":"2026-05-14"},"score":8.8,"title":"PostgreSQL refint allows stack buffer overflow and SQL injection","url":"https://www.postgresql.org/support/security/CVE-2026-6637/","vector":"AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"reviewed_hash":"6a65a7884245936f6adaef8709d290d460e999dfce1ad78734fa7c9a324ed325","source_hash":"965b9e2323feab543f3cbeb74c418c3a5b43cbefc6594d2862ff0d24dcf8e6a2","text":{"locale":"zh-Hans","title":"PostgreSQL refint 存在栈缓冲区溢出与 SQL 注入","description":"PostgreSQL refint 存在栈缓冲区溢出与 SQL 注入","details":"PostgreSQL 的 refint 模块存在栈缓冲区溢出，允许无特权数据库用户以数据库服务所使用的操作系统用户身份 执行任意代码。另有一种独立攻击：若应用把用户可控列声明为 refint 级联主键，并允许用户控制该列的更新， SQL 注入可使主键更新值的提供者以执行该更新的数据库用户身份运行任意 SQL。PostgreSQL 18.4、17.10、 16.14、15.18 和 14.23 之前的版本受此问题影响。","format":"markdown","provenance":{"identity":"immutable_cve_code","sources":[{"observed_at":"2026-10-03 12:08:35.169032+08","raw":{"component":"contrib module","cve":"2026-6637","cvenumber":202606637,"description":"PostgreSQL refint 存在栈缓冲区溢出与 SQL 注入","details":"PostgreSQL 的 refint 模块存在栈缓冲区溢出，允许无特权数据库用户以数据库服务所使用的操作系统用户身份 执行任意代码。另有一种独立攻击：若应用把用户可控列声明为 refint 级联主键，并允许用户控制该列的更新， SQL 注入可使主键更新值的提供者以执行该更新的数据库用户身份运行任意 SQL。PostgreSQL 18.4、17.10、 16.14、15.18 和 14.23 之前的版本受此问题影响。","detailslink":"","id":48,"legacyscore":"","newspost_id":3294,"public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"source":"center","source_id":48,"source_table_sha256":"b57ee28b2263464208af0ccf7512b31f0c1ab7140d12dda09a0c87de341f1372"},{"observed_at":"2026-10-03 12:08:55.967155+08","raw":{"component":"contrib module","cve":"2026-6637","cvenumber":202606637,"description":"PostgreSQL refint 存在栈缓冲区溢出与 SQL 注入","details":"PostgreSQL 的 refint 模块存在栈缓冲区溢出，允许无特权数据库用户以数据库服务所使用的操作系统用户身份 执行任意代码。另有一种独立攻击：若应用把用户可控列声明为 refint 级联主键，并允许用户控制该列的更新， SQL 注入可使主键更新值的提供者以执行该更新的数据库用户身份运行任意 SQL。PostgreSQL 18.4、17.10、 16.14、15.18 和 14.23 之前的版本受此问题影响。","detailslink":"","id":48,"legacyscore":"","newspost_id":3294,"public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"source":"pgweb","source_id":48,"source_table_sha256":"b57ee28b2263464208af0ccf7512b31f0c1ab7140d12dda09a0c87de341f1372"}]},"text_hash":"db8bc4e4a060300c8a9625cfaa13ef0bd43ebdd1d5b3fbc959052646e0691007"},"locales":["en","zh-Hans"],"fixes":[{"major":"14","fixed_version":"14.23","introduced":null,"published_date":"2026-05-14","facts":{"fixed":"14.23","introduced":null,"published":"2026-05-14"}},{"major":"15","fixed_version":"15.18","introduced":null,"published_date":"2026-05-14","facts":{"fixed":"15.18","introduced":null,"published":"2026-05-14"}},{"major":"16","fixed_version":"16.14","introduced":null,"published_date":"2026-05-14","facts":{"fixed":"16.14","introduced":null,"published":"2026-05-14"}},{"major":"17","fixed_version":"17.10","introduced":null,"published_date":"2026-05-14","facts":{"fixed":"17.10","introduced":null,"published":"2026-05-14"}},{"major":"18","fixed_version":"18.4","introduced":null,"published_date":"2026-05-14","facts":{"fixed":"18.4","introduced":null,"published":"2026-05-14"}}],"legacy":[{"source":"center","source_id":48,"observed_at":"2026-10-03 12:08:35.169032+08","raw":{"id":48,"cve":"2026-6637","public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","details":"PostgreSQL 的 refint 模块存在栈缓冲区溢出，允许无特权数据库用户以数据库服务所使用的操作系统用户身份 执行任意代码。另有一种独立攻击：若应用把用户可控列声明为 refint 级联主键，并允许用户控制该列的更新， SQL 注入可使主键更新值的提供者以执行该更新的数据库用户身份运行任意 SQL。PostgreSQL 18.4、17.10、 16.14、15.18 和 14.23 之前的版本受此问题影响。","component":"contrib module","cvenumber":202606637,"description":"PostgreSQL refint 存在栈缓冲区溢出与 SQL 注入","detailslink":"","legacyscore":"","newspost_id":3294},"fixes":[{"source_id":175,"source_version_id":31,"major":"18","fixed_minor":4,"raw":{"id":175,"patch_id":48,"version_id":31,"fixed_minor":4},"version_raw":{"id":31,"tree":18.0,"current":true,"docsgit":"","eoldate":"2030-11-14","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":6,"firstreldate":"2025-09-25"}},{"source_id":176,"source_version_id":30,"major":"17","fixed_minor":10,"raw":{"id":176,"patch_id":48,"version_id":30,"fixed_minor":10},"version_raw":{"id":30,"tree":17.0,"current":false,"docsgit":"","eoldate":"2029-11-08","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":11,"firstreldate":"2024-09-26"}},{"source_id":177,"source_version_id":29,"major":"16","fixed_minor":14,"raw":{"id":177,"patch_id":48,"version_id":29,"fixed_minor":14},"version_raw":{"id":29,"tree":16.0,"current":false,"docsgit":"","eoldate":"2028-11-09","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":15,"firstreldate":"2023-09-14"}},{"source_id":178,"source_version_id":28,"major":"15","fixed_minor":18,"raw":{"id":178,"patch_id":48,"version_id":28,"fixed_minor":18},"version_raw":{"id":28,"tree":15.0,"current":false,"docsgit":"","eoldate":"2027-11-11","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":19,"firstreldate":"2022-10-13"}},{"source_id":179,"source_version_id":27,"major":"14","fixed_minor":23,"raw":{"id":179,"patch_id":48,"version_id":27,"fixed_minor":23},"version_raw":{"id":27,"tree":14.0,"current":false,"docsgit":"","eoldate":"2026-11-12","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":24,"firstreldate":"2021-09-30"}}]},{"source":"pgweb","source_id":48,"observed_at":"2026-10-03 12:08:55.967155+08","raw":{"id":48,"cve":"2026-6637","public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","details":"PostgreSQL 的 refint 模块存在栈缓冲区溢出，允许无特权数据库用户以数据库服务所使用的操作系统用户身份 执行任意代码。另有一种独立攻击：若应用把用户可控列声明为 refint 级联主键，并允许用户控制该列的更新， SQL 注入可使主键更新值的提供者以执行该更新的数据库用户身份运行任意 SQL。PostgreSQL 18.4、17.10、 16.14、15.18 和 14.23 之前的版本受此问题影响。","component":"contrib module","cvenumber":202606637,"description":"PostgreSQL refint 存在栈缓冲区溢出与 SQL 注入","detailslink":"","legacyscore":"","newspost_id":3294},"fixes":[{"source_id":175,"source_version_id":31,"major":"18","fixed_minor":4,"raw":{"id":175,"patch_id":48,"version_id":31,"fixed_minor":4},"version_raw":{"id":31,"tree":18.0,"current":true,"docsgit":"","eoldate":"2030-11-14","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":6,"firstreldate":"2025-09-25"}},{"source_id":176,"source_version_id":30,"major":"17","fixed_minor":10,"raw":{"id":176,"patch_id":48,"version_id":30,"fixed_minor":10},"version_raw":{"id":30,"tree":17.0,"current":false,"docsgit":"","eoldate":"2029-11-08","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":11,"firstreldate":"2024-09-26"}},{"source_id":177,"source_version_id":29,"major":"16","fixed_minor":14,"raw":{"id":177,"patch_id":48,"version_id":29,"fixed_minor":14},"version_raw":{"id":29,"tree":16.0,"current":false,"docsgit":"","eoldate":"2028-11-09","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":15,"firstreldate":"2023-09-14"}},{"source_id":178,"source_version_id":28,"major":"15","fixed_minor":18,"raw":{"id":178,"patch_id":48,"version_id":28,"fixed_minor":18},"version_raw":{"id":28,"tree":15.0,"current":false,"docsgit":"","eoldate":"2027-11-11","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":19,"firstreldate":"2022-10-13"}},{"source_id":179,"source_version_id":27,"major":"14","fixed_minor":23,"raw":{"id":179,"patch_id":48,"version_id":27,"fixed_minor":23},"version_raw":{"id":27,"tree":14.0,"current":false,"docsgit":"","eoldate":"2026-11-12","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":24,"firstreldate":"2021-09-30"}}]}]}
