{"id":"BIT-postgresql-2026-16239","summary":"PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code","details":"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.","aliases":["CVE-2026-16239"],"modified":"2026-08-31T08:00:06.278630943Z","published":"2026-08-19T08:52:50.733Z","database_specific":{"cpes":["cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*"],"severity":"High"},"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16239"},{"type":"WEB","url":"https://www.postgresql.org/support/security/CVE-2026-16239/"}],"affected":[{"package":{"name":"postgresql","ecosystem":"Bitnami","purl":"pkg:bitnami/postgresql"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"14.24.0"},{"introduced":"15.0.0"},{"fixed":"15.19.0"},{"introduced":"16.0.0"},{"fixed":"16.15.0"},{"introduced":"17.0.0"},{"fixed":"17.11.0"},{"introduced":"18.0.0"},{"fixed":"18.5.0"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/postgresql/BIT-postgresql-2026-16239.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}],"schema_version":"1.9.0"}