{"id":"CVE-2026-6637","aliases":["CVE-2026-6637","BIT-POSTGRESQL-2026-6637"],"related":[],"kind":"vulnerability","state":"published","title":"PostgreSQL refint allows stack buffer overflow and SQL injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Desbordamiento de búfer de pila en el módulo de PostgreSQL ’refint’ permite a un usuario de base de datos sin privilegios ejecutar código arbitrario como el usuario del sistema operativo que ejecuta la base de datos. Un ataque distinto es posible si la aplicación declara una columna controlada por el usuario como una clave primaria en cascada ’refint’ y facilita actualizaciones controladas por el usuario a esa columna. En ese caso, una inyección SQL permite a un proveedor de valor de actualización de clave primaria ejecutar SQL arbitrario como el usuario de la base de datos que realiza la actualización de la clave primaria. Las versiones anteriores a PostgreSQL 18.4, 17.10, 16.14, 15.18 y 14.23 están afectadas.","source":"nvd"}],"published":"2026-05-14T13:00:15.223Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-89","CWE-121"],"affected":[{"ranges":[{"type":"rpm","introduced":"18","fixed":"18.4","status":"affected"},{"type":"rpm","introduced":"17","fixed":"17.10","status":"affected"},{"type":"rpm","introduced":"16","fixed":"16.14","status":"affected"},{"type":"rpm","introduced":"15","fixed":"15.18","status":"affected"},{"type":"rpm","introduced":"0","fixed":"14.23","status":"affected"}],"product":"PostgreSQL","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"14.23"},{"status":"affected","introduced":"15.0","fixed":"15.18"},{"status":"affected","introduced":"16.0","fixed":"16.14"},{"status":"affected","introduced":"17.0","fixed":"17.10"},{"status":"affected","introduced":"18.0","fixed":"18.4"}],"vendor":"postgresql","product":"postgresql","cpe":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"14.23.0"},{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.18.0"},{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"16.14.0"},{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.10.0"},{"type":"semver","introduced":"18.0.0","status":"affected","fixed":"18.4.0"}],"ecosystem":"Bitnami","package":"postgresql","purl":"pkg:bitnami/postgresql","source":"bitnami"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-6637/","tags":["advisory","patch","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6637","tags":["web"],"sources":["bitnami"]}],"credits":["The PostgreSQL project thanks Nikolay Samokhvalov for reporting this problem."],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-14T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6637","url":"https://www.cve.org/CVERecord?id=CVE-2026-6637","licence":"CVE Terms of Use","modified":"2026-05-15T03:56:19.781Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6637","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6637","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-POSTGRESQL-2026-6637","url":"https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-6637","licence":"Apache-2.0","modified":"2026-09-08T08:48:04.914Z"}],"updatedAt":"2026-11-25T22:59:21.706Z","epss":{"score":0.0037,"percentile":0.32947,"date":"2026-12-01T12:00:22.000Z"}}