PostgreSQL
PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-843
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
n/a PostgreSQL
- >= 18, < 18.6
- >= 17, < 17.11
- >= 16, < 16.15
- >= 15, < 15.19
- < 14.24
Fixed in 18.6, 17.11, 16.15, 15.19, 14.24
Mitigation
Upgrade PostgreSQL to 18.6 or 17.11 or 16.15 or 15.19 or 14.24 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.