{"id":"CVE-2026-6637","state":"PUBLISHED","title":"PostgreSQL refint allows stack buffer overflow and SQL injection","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.","publishedAt":"2026-05-14T13:00:15.223Z","updatedAt":"2026-05-15T03:56:19.781Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"PostgreSQL"},"assigner":"PostgreSQL","products":["n/a PostgreSQL"],"affected":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"version":"18","status":"affected","lessThan":"18.4","versionType":"rpm"},{"version":"17","status":"affected","lessThan":"17.10","versionType":"rpm"},{"version":"16","status":"affected","lessThan":"16.14","versionType":"rpm"},{"version":"15","status":"affected","lessThan":"15.18","versionType":"rpm"},{"version":"0","status":"affected","lessThan":"14.23","versionType":"rpm"}]}],"references":["https://www.postgresql.org/support/security/CVE-2026-6637/"],"weaknesses":["CWE-121","CWE-89"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/6xxx/CVE-2026-6637.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-6637","state":"PUBLISHED","datePublished":"2026-05-14T13:00:15.223Z","dateUpdated":"2026-05-15T03:56:19.781Z","assignerShortName":"PostgreSQL","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateReserved":"2026-04-19T19:58:20.340Z"},"containers":{"cna":{"title":"PostgreSQL refint allows stack buffer overflow and SQL injection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"version":"18","status":"affected","lessThan":"18.4","versionType":"rpm"},{"version":"17","status":"affected","lessThan":"17.10","versionType":"rpm"},{"version":"16","status":"affected","lessThan":"16.14","versionType":"rpm"},{"version":"15","status":"affected","lessThan":"15.18","versionType":"rpm"},{"version":"0","status":"affected","lessThan":"14.23","versionType":"rpm"}]}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-6637/"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","lang":"en","type":"CWE","description":"Stack-based Buffer Overflow"},{"cweId":"CWE-89","lang":"en","type":"CWE","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"}]}],"providerMetadata":{"shortName":"PostgreSQL","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateUpdated":"2026-05-14T13:00:15.223Z"},"configurations":[{"lang":"en","value":"superuser previously installed the refint extension"}],"credits":[{"lang":"en","value":"The PostgreSQL project thanks Nikolay Samokhvalov for reporting this problem."}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-14T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-6637"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-15T03:56:19.781Z"}}]}}}