Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-16239— PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code

CVSS 8.8 · High

Possible ATT&CK Techniques 1AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-16239

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code
Source: CVE Program / CVE List V5
Vulnerability 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.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
使用不兼容类型访问资源(类型混淆)
Source: CVE Program / CVE List V5

Affected Products

VendorProductAffected VersionsCPESubscribe
-PostgreSQL 18 ~ 18.5 -

II. Public POCs for CVE-2026-16239

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-16239

登录查看更多情报信息。

Vendor Advisories for CVE-2026-16239 (1)

Same Patch Batch · n/a · 2026-08-13 · 31 CVEs total

CVE-2026-146768.8 HIGHPostgreSQL pg_stat_statements heap buffer overflow executes arbitrary code
CVE-2026-146778.8 HIGHPostgreSQL 32-bit pltcl and plperl undersize allocations, via integer wraparound
CVE-2026-146718.8 HIGHPostgreSQL refint plan cache type confusion executes arbitrary code
CVE-2026-146808.8 HIGHPostgreSQL type confusion via "internal" arguments
CVE-2026-146698.8 HIGHPostgreSQL to_char heap buffer overflow executes arbitrary code
CVE-2026-157418.8 HIGHPostgreSQL expression deparse allows SQL injection via EXTRACT argument
CVE-2026-162388.8 HIGHPostgreSQL type confusion in pg_restore_attribute_stats() executes arbitrary code
CVE-2026-157428.8 HIGHPostgreSQL fuzzystrmatch writes effectively-arbitrary addresses, via integer wraparound
CVE-2026-146648.8 HIGHPostgreSQL regexp heap buffer overflow executes arbitrary code
CVE-2026-193858.8 HIGHPostgreSQL pg_dump heap buffer overflow executes arbitrary code
CVE-2026-184088.8 HIGHPostgreSQL psql \unrestrict lets superuser of pg_dump origin server execute arbitrary code
CVE-2026-146628.8 HIGHPostgreSQL tsvector and tsquery undersize allocations, via integer wraparound
CVE-2026-146708.8 HIGHPostgreSQL plperl tied object heap buffer overflow executes arbitrary code
CVE-2026-146798.2 HIGHPostgreSQL stack buffer overflow in argument match writes 0x0 and 0x1 to server memory
CVE-2026-146688.1 HIGHPostgreSQL ctid type confusion in selectivity estimator discloses derivative of arbitrary
CVE-2026-64648.1 HIGHPostgreSQL psql COPY FROM STDIN early failure processes data lines as psql commands
CVE-2026-64717.2 HIGHPostgreSQL logical decoding can dlopen arbitrary file
CVE-2026-146636.5 MEDIUMPostgreSQL pgcrypto, for OpenSSL-disabled ciphers, silently encrypts to and decrypts from
CVE-2026-146725.3 MEDIUMPostgreSQL observable response discrepancy with non-default scram_iterations provides user
CVE-2026-146784.3 MEDIUMPostgreSQL pg_trgm picksplit reads past end of buffer

Showing top 20 of 31 CVEs. View all on vendor page → →

IV. Related Vulnerabilities

V. Comments for CVE-2026-16239

No comments yet


Leave a comment