Skip to main content
No exploitation reportedFix available

CVE-2026-16239

No exploitation reported by the sources we read.

  • Published2026-08-13
  • Fixed in18.5 · 17.11 · 16.15 · 15.19 · 14.24
  • WeaknessCWE-843

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-08-1313:17CVE publishedNVD

Versions per branch

NVD · OSV
PostgreSQL
BranchAffectedFixed in
18.x≥ 18.0, < 18.518.5
17.x≥ 17.0, < 17.1117.11
16.x≥ 16.0, < 16.1516.15
15.x≥ 15.0, < 15.1915.19
14.x≥ 14.0, < 14.2414.24
postgresql
BranchAffectedFixed in
18.x≥ 18.0.0, < 18.5.018.5.0
17.x≥ 17.0.0, < 17.11.017.11.0
16.x≥ 16.0.0, < 16.15.016.15.0
15.x≥ 15.0.0, < 15.19.015.19.0
14.24< 14.24.014.24.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As PostgreSQL, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • PostgreSQLother versions: not affected
    Affected
    • ≥ 18, < 18.6fixed in 18.6rpm
    • ≥ 17, < 17.11fixed in 17.11rpm
    • ≥ 16, < 16.15fixed in 16.15rpm
    • ≥ 15, < 15.19fixed in 15.19rpm
    • < 14.24fixed in 14.24rpm

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-08-29

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pg_repackRocky Linux:9all versions · fixed in 0:1.4.8-2.module+el9.7.0+40011+28af63c9
  • pg_repackRocky Linux:9all versions · fixed in 0:1.5.1-1.module+el9.8.0+40159+adcaa225
  • pg_repackRocky Linux:9all versions · fixed in 0:1.5.1-1.module+el9.8.0+40212+d6f50005
  • pg_repackRocky Linux:9all versions · fixed in 0:1.5.3-1.module+el9.8.0+40158+490b3c67
  • pg_repackRocky Linux:9all versions · fixed in 0:1.5.3-1.module+el9.8.0+40213+f1e225a4
  • pg_repackRocky Linux:8all versions · fixed in 0:1.4.6-3.module+el8.10.0+1862+29bef648
  • pg_repackRocky Linux:8all versions · fixed in 0:1.4.6-3.module+el8.10.0+40055+b85d5ce2
  • pg_repackRocky Linux:8all versions · fixed in 0:1.4.6-3.module+el8.9.0+1594+4a6adae9

265 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-16239 Red Hat Product Security3,205 products fixed · 11 known affected

    postgresql: PostgreSQL: Arbitrary code execution via type confusion in cursor lifecycle

    postgresql as a component of Red Hat Enterprise Linux 6 · postgresql-contrib as a component of Red Hat Enterprise Linux 6 · postgresql-devel as a component of Red Hat Enterprise Linux 6 · +8 more

  • RHSA-2026:84585 Red Hat Product Security75 products fixed

    Red Hat Security Advisory: postgresql security update

  • RHSA-2026:73912 Red Hat Product Security158 products fixed

    Red Hat Security Advisory: postgresql:12 security update

  • RHSA-2026:73404 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Ansible automation portal Red Hat Enterprise Linux Images

  • RHSA-2026:72361 Red Hat Product Security85 products fixed

    Red Hat Security Advisory: postgresql security update

  • RHSA-2026:72363 Red Hat Product Security175 products fixed

    Red Hat Security Advisory: postgresql:12 security update

20 more advisories

Full record on NVD

Fix

  1. Update PostgreSQL to 18.5 · 17.11 · 16.15 · 15.19 · 14.24
  2. Vendor fix Red Hat Product Security RHSA-2026:84585 · 75 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2026:73404 · 1 productFor more about Ansible Portal Installer Bootc, see References links
  4. Vendor fix Red Hat Product Security RHSA-2026:71603 · 1 productThe container images provided by this release, apart from the installer, should be deployed using rhui-installer utility. See the official documentation for more details.
  5. Workaround from the vendor Red Hat Product Security RHSA-2026:84585 · 75 productsTo mitigate this vulnerability, restrict direct database access strictly to trusted roles and minimize multi-tenant database scenarios where untrusted users can execute arbitrary SQL. Monitor database audit logs for anomalous or high-frequency cursor lifecycle activities involving unexpected CLOSE …

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2026-08-13
Last modified
2026-08-29
NVD status
Modified
GitHub advisory
GHSA-m6g7-vvh9-445r

Frequently asked questions

What is CVE-2026-16239?

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.

Is CVE-2026-16239 actively exploited?

Active exploitation of CVE-2026-16239 has not been confirmed. Its EPSS score was 0.7% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-16239?

CVE-2026-16239 has a CVSS v3 base score of 8.8 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running PostgreSQL? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record