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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-8715— PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server

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是PostgreSQL组织的一套自由的对象关系型数据库管理系统。该系统支持大部分SQL标准并且提供了许多其他特性,例如外键、触发器、视图等。 PostgreSQL 17.6版本、16.10版本、15.14版本、14.19版本和13.22之前版本存在安全漏洞,该漏洞源于pg_dump中换行符处理不当可能允许恢复时执行任意代码。

CVSS 8.8 · High EPSS 0.43% · P34

Possible ATT&CK Techniques 1 AI

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

I. Basic Information for CVE-2025-8715

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_dump newline in object name executes arbitrary code in psql client and in restore target server
Source: CVE Program / CVE List V5
Vulnerability Description
Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands inside a purpose-crafted object name. The same attacks can achieve SQL injection as a superuser of the restore target server. pg_dumpall, pg_restore, and pg_upgrade are also affected. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected. Versions before 11.20 are unaffected. CVE-2012-0868 had fixed this class of problem, but version 11.20 reintroduced it.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对CRLF序列的转义处理不恰当(CRLF注入)
Source: CVE Program / CVE List V5
Vulnerability Title
PostgreSQL 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
PostgreSQL是PostgreSQL组织的一套自由的对象关系型数据库管理系统。该系统支持大部分SQL标准并且提供了许多其他特性,例如外键、触发器、视图等。 PostgreSQL 17.6版本、16.10版本、15.14版本、14.19版本和13.22之前版本存在安全漏洞,该漏洞源于pg_dump中换行符处理不当可能允许恢复时执行任意代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
- PostgreSQL 17 ~ 17.6 -

II. Public POCs for CVE-2025-8715

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-8715

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

Same Patch Batch · n/a · 2025-08-14 · 23 CVEs total

CVE-2025-8714 8.8 HIGH PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client
CVE-2025-8961 3.3 LOW LibTIFF tiffcrop tiffcrop.c main memory corruption
CVE-2025-8713 3.1 LOW PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child
CVE-2025-51965 OURPHP 安全漏洞
CVE-2025-50862 Altus Cars Lotus Cars Android app 安全漏洞
CVE-2025-50861 Altus Cars Lotus Cars Android app 安全漏洞
CVE-2025-52335 EyouCMS 安全漏洞
CVE-2025-51986 SILA Embedded Solutions Freemodbus 安全漏洞
CVE-2025-50817 python-future 安全漏洞
CVE-2023-43687 Malwarebytes 安全漏洞
CVE-2025-50515 EmpireSoft Empirebak 安全漏洞
CVE-2023-43683 Malwarebytes 安全漏洞
CVE-2023-43692 Malwarebytes 安全漏洞
CVE-2025-50518 libcoap 安全漏洞
CVE-2023-43694 Malwarebytes 安全漏洞
CVE-2025-27847 ESPEC North America Web Controller 3 安全漏洞
CVE-2025-27846 ESPEC North America Web Controller 3 安全漏洞
CVE-2025-27845 ESPEC North America Web Controller 3 安全漏洞
CVE-2025-43983 KuWFi CPF908-CP5 安全漏洞
CVE-2024-53946 KuWFi 4G LTE AC900 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-8715

No comments yet


Leave a comment