CVEFinder.io

CVE-2025-8715

âš ī¸ high
Summary

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 a

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.

CVSS Score
8.8
High
EPSS Score
0.0
Exploit Probability
Published Date
2025-08-14
First Seen: 2026-01-05
📊 Relative Risk Intelligence

This CVE is High Risk - more severe than 80.9% of all 378,548 vulnerabilities in our database.

#72,458
Top 25% most severe
Severity Percentile
đŸŽ¯ CISA SSVC Assessment Updated: Aug 14, 2025
🔍 Exploitation Status
None
No known exploits
âš™ī¸ Automatable
NO
Requires human interaction
đŸ’Ĩ Technical Impact
Partial
Limited system impact
🏆 Discovered By
The PostgreSQL project thanks Noah Misch for reporting this problem.
SSVC data provided by CISA
Last Modified 2025-08-15
CVSS Vector 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE IDs (Weakness Types)

đŸ“Ļ Affected Products 5

🔗 References 1

🔗 Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2025-12817 â„šī¸ low 3.1 0.2 Missing authorization in PostgreSQL CREATE STATISTICS command allows a table owner to achieve denial of service against ... 2025-11-13
CVE-2025-12818 đŸ”ļ medium 5.9 0.4 Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network... 2025-11-13
CVE-2025-8713 â„šī¸ low 3.1 0.0 PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately... 2025-08-14
CVE-2025-8714 âš ī¸ high 8.8 0.0 Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary ... 2025-08-14
CVE-2025-4207 đŸ”ļ medium 5.9 0.1 Buffer over-read in PostgreSQL GB18030 encoding validation allows a database input provider to achieve temporary denial ... 2025-05-08
CVE-2025-1094 âš ī¸ high 8.1 90.0 Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescap... 2025-02-13
These CVEs affect the same products