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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-16240— PostgreSQL pg_basebackup can use backup manifest content as a format string

Quick assessment

Affected
n/a PostgreSQL
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

PostgreSQL 的 组件中存在由外部控制的格式字符串漏洞。若攻击者已攻破服务器,可利用备份清单(backup manifest)中的字节,从 的内存中窃取信息。该漏洞不会将读取不当的字节直接返回给攻击者的服务器,因此成功利用该漏洞需要攻击者预先掌握与具体实现相关的秘密信息。该漏洞对完整性的影响可能性较低,特别是因为相关的格式化函数不支持 占位符。受影响的版本包括:PostgreSQL 18.7 之前、17.12 之前、16.16 之前、15.20 之前以及 14.25 之前的所有版本。

CVSS 3.7 · Low
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-16240

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 pg_basebackup can use backup manifest content as a format string
Source: CVE Program / CVE List V5
Vulnerability Description
Use of externally-controlled format string in PostgreSQL pg_basebackup allows an attacker having already compromised a server to achieve disclosure from pg_basebackup memory, via backup manifest bytes. The vulnerability does not return the improperly-read bytes back to the attacker's server, so a successful attack would need separate implementation-specific secrets for that. Integrity impact is unlikely; in particular, the applicable formatter does not support %n. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
使用外部控制的格式字符串
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
- PostgreSQL 18 ~ 18.7 -

II. Public POCs for CVE-2026-16240

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-16240

请登录查看更多情报信息。

Other References for CVE-2026-16240 (1)

Same Patch Batch · n/a · 2026-11-12 · 56 CVEs total

CVE-2026-116331 8.8 HIGH PostgreSQL min/max aggregate type confusion executes arbitrary code
CVE-2026-116307 8.8 HIGH PostgreSQL plperl prepared-query use-after-free executes arbitrary code
CVE-2026-116309 8.8 HIGH PostgreSQL plperl blessed-reference type confusion may execute arbitrary code
CVE-2026-120142 8.8 HIGH PostgreSQL dropped-column type confusion executes arbitrary code
CVE-2026-120141 8.8 HIGH PostgreSQL materialized set-returning function type confusion executes arbitrary code
CVE-2026-120139 8.8 HIGH PostgreSQL tuple-size integer wraparound executes arbitrary code
CVE-2026-116336 8.8 HIGH PostgreSQL REINDEX CONCURRENTLY does not block DROP INDEX during index functions
CVE-2026-116335 8.8 HIGH PostgreSQL commutator or negator result-type confusion executes arbitrary code
CVE-2026-116332 8.8 HIGH PostgreSQL portal setup use-after-free executes arbitrary code
CVE-2026-116315 8.8 HIGH PostgreSQL tsvector_delete() heap buffer overflow executes arbitrary code
CVE-2026-120144 8.8 HIGH PostgreSQL type-cache invalidation gap executes arbitrary code
CVE-2026-116329 8.8 HIGH PostgreSQL statistics import type confusion executes arbitrary code
CVE-2026-116330 8.8 HIGH PostgreSQL pg_dump tar restore.sql fails to block psql command injection
CVE-2026-116328 8.8 HIGH PostgreSQL generation memory context integer wraparound executes arbitrary code
CVE-2026-116317 8.8 HIGH PostgreSQL ts_rank_cd() heap buffer overflow may execute arbitrary code
CVE-2026-116326 8.8 HIGH PostgreSQL plperl tied-object exceptions follow stale sigjmp_buf
CVE-2026-116323 8.8 HIGH PostgreSQL pltcl reentrant result conversion use-after-free executes arbitrary code
CVE-2026-116319 8.8 HIGH PostgreSQL plperl reentrant return_next() use-after-free executes arbitrary code
CVE-2026-116320 8.8 HIGH PostgreSQL plperl array and hash conversion use-after-free executes arbitrary code
CVE-2026-116318 8.8 HIGH PostgreSQL pg_dump not-null constraint name allows SQL injection

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

IV. Related Vulnerabilities