{"id":"CVE-2026-16239","published":"2026-08-13T13:00:13Z","modified":"2026-08-29T23:07:29Z","title":"PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code","vendor":null,"product":null,"tier":"tail","description":{"text":"Type confusion in PostgreSQL \"portal\"/cursor lifecycle allows a user to execute arbitrary code as the operating system user running the database, via re-creation of a cursor or other portal with different types.  Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00683,"percentile":0.53471,"provenance":"source"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-16239/","tags":[]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":10.69},{"name":"CVSS severity","points":6.16}]},"affectedVersions":[{"vendor":"n/a","product":"PostgreSQL","versions":[">= 18, < 18.6",">= 17, < 17.11",">= 16, < 16.15",">= 15, < 15.19","< 14.24"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-13T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-57849","exploited":false,"provenance":"source"}}