{"schemaVersion":3,"id":"CVE-2026-16239","aliases":["ALPINE-CVE-2026-16239","UBUNTU-CVE-2026-16239","DEBIAN-CVE-2026-16239"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-08-13T13:00:13.131Z","modified":"2026-08-29T23:07:29.449Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00683,"percentile":0.51674,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.15700000000000003,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00526},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00683,"percentile":0.51674}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00683,"percentile":0.51674}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type ('Type Confusion')","description":"The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/843.html"}],"affected":[{"vendor":"alpine","product":"postgresql16","name":"postgresql16","label":"postgresql16","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql16","purlType":"apk","versions":[{"text":"< 16.15-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.15-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql17","name":"postgresql17","label":"postgresql17","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql17","purlType":"apk","versions":[{"text":"< 17.11-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 17.11-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql18","name":"postgresql18","label":"postgresql18","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql18","purlType":"apk","versions":[{"text":"< 18.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 18.5-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-15","name":"postgresql-15","label":"postgresql-15","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-15","purlType":"deb","versions":[{"text":"< 15.19-0+deb12u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.19-0+deb12u1","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-17","name":"postgresql-17","label":"postgresql-17","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-17","purlType":"deb","versions":[{"text":"< 17.11-0+deb13u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 17.11-0+deb13u1","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-18","name":"postgresql-18","label":"postgresql-18","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-18","purlType":"deb","versions":[{"text":"< 18.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 18.6-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-10","name":"postgresql-10","label":"postgresql-10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-10","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-12","name":"postgresql-12","label":"postgresql-12","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-12","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-14","name":"postgresql-14","label":"postgresql-14","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-14","purlType":"deb","versions":[{"text":"< 14.24-0ubuntu0.22.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 14.24-0ubuntu0.22.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-16","name":"postgresql-16","label":"postgresql-16","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-16","purlType":"deb","versions":[{"text":"< 16.15-0ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.15-0ubuntu0.24.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-18","name":"postgresql-18","label":"postgresql-18","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-18","purlType":"deb","versions":[{"text":"< 18.6-0ubuntu0.26.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 18.6-0ubuntu0.26.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.3","name":"postgresql-9.3","label":"postgresql-9.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.5","name":"postgresql-9.5","label":"postgresql-9.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.5","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"postgresql","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 14.0, < 14.24","noFixRecorded":false,"fixedIn":null},{"text":"≥ 15.0, < 15.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 16.0, < 16.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 17.0, < 17.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 18.0, < 18.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 14.0, < 14.24 | ≥ 15.0, < 15.19 | ≥ 16.0, < 16.15 | ≥ 17.0, < 17.11 | ≥ 18.0, < 18.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"postgresql","label":"PostgreSQL","category":"database"}},"hubHref":"/vendor/postgresql/postgresql"}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-16239/","label":"www.postgresql.org/support/security/CVE-2026-16239/","hostname":"www.postgresql.org","tags":["REPORT","Vendor Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-16239","label":"security.alpinelinux.org/vuln/CVE-2026-16239","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-16239","label":"ubuntu.com/security/CVE-2026-16239","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-16239","label":"www.cve.org/CVERecord?id=CVE-2026-16239","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://www.postgresql.org/about/news/postgresql-186-1711-1615-1519-1424-and-19-beta-3-released-3365/","label":"www.postgresql.org/about/news/postgresql-186-1711-1615-1519-1424-and-19-beta-3-released-3365/","hostname":"www.postgresql.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8653-1","label":"ubuntu.com/security/notices/USN-8653-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-16239","label":"security-tracker.debian.org/tracker/CVE-2026-16239","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16239","label":"nvd.nist.gov/vuln/detail/CVE-2026-16239","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0347","OPENSUSE-SU-2026:11552-1","OPENSUSE-SU-2026:11553-1","OPENSUSE-SU-2026:11554-1","OPENSUSE-SU-2026:11555-1","OPENSUSE-SU-2026:11565-1","OPENSUSE-SU-2026:21699-1","OPENSUSE-SU-2026:21700-1","OPENSUSE-SU-2026:21701-1","OPENSUSE-SU-2026:21702-1","OPENSUSE-SU-2026:21703-1","RHSA-2026:67280","RHSA-2026:67491","RHSA-2026:67848","RHSA-2026:69607","RHSA-2026:69698","RHSA-2026:69876","RHSA-2026:69914","RHSA-2026:69923","RHSA-2026:69924","RHSA-2026:70186","RHSA-2026:70559","RHSA-2026:70602","RHSA-2026:70762","RHSA-2026:70763","RHSA-2026:70856","RHSA-2026:72281","RHSA-2026:72282","RHSA-2026:72283","RHSA-2026:72361","RHSA-2026:72362","RHSA-2026:72363","RHSA-2026:73912","RHSA-2026:84585","SUSE-SU-2026:23577-1","SUSE-SU-2026:23578-1","SUSE-SU-2026:23579-1","SUSE-SU-2026:23580-1","SUSE-SU-2026:23582-1","SUSE-SU-2026:3793-1","SUSE-SU-2026:3794-1","SUSE-SU-2026:3940-1","SUSE-SU-2026:3941-1","SUSE-SU-2026:3942-1","SUSE-SU-2026:3943-1","SUSE-SU-2026:3944-1","SUSE-SU-2026:3963-1","SUSE-SU-2026:4013-1","SUSE-SU-2026:4014-1","SUSE-SU-2026:4015-1","SUSE-SU-2026:4016-1","SUSE-SU-2026:4017-1","SUSE-SU-2026:4018-1","USN-8653-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11552-1","OPENSUSE-SU-2026:11553-1","OPENSUSE-SU-2026:11554-1","OPENSUSE-SU-2026:11555-1","OPENSUSE-SU-2026:11565-1","OPENSUSE-SU-2026:21699-1","OPENSUSE-SU-2026:21700-1","OPENSUSE-SU-2026:21701-1","OPENSUSE-SU-2026:21702-1","OPENSUSE-SU-2026:21703-1","SUSE-SU-2026:23577-1","SUSE-SU-2026:23578-1","SUSE-SU-2026:23579-1","SUSE-SU-2026:23580-1","SUSE-SU-2026:23582-1","SUSE-SU-2026:3793-1","SUSE-SU-2026:3794-1","SUSE-SU-2026:3940-1","SUSE-SU-2026:3941-1","SUSE-SU-2026:3942-1","SUSE-SU-2026:3943-1","SUSE-SU-2026:3944-1","SUSE-SU-2026:3963-1","SUSE-SU-2026:4013-1","SUSE-SU-2026:4014-1","SUSE-SU-2026:4015-1","SUSE-SU-2026:4016-1","SUSE-SU-2026:4017-1","SUSE-SU-2026:4018-1","USN-8653-1"]},"timeline":[{"kind":"published","date":"2026-08-13T13:00:13.131Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-29T23:07:29.449Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T16:58:15.813Z","stale":false,"partial":false}}