8.8
High
CVE-2025-8715 Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code…
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.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql 17 | 17 → < 17.6 | 17.6 |
| postgresql 16 | 16 → < 16.10 | 16.10 |
| postgresql 15 | 15 → < 15.14 | 15.14 |
| postgresql 14 | 14 → < 14.19 | 14.19 |
| postgresql 11.20 | 11.20 → < 13.22 | 13.22 |
References
- www.postgresql.org www.postgresql.org
Timeline
- Published
- Last modified
Other CVEs of postgresql
The 79 CVEs of postgresql →
CVE-2026-6471
Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to dlopen…
7.2
High
CVE-2026-14671
Type confusion in PostgreSQL module "refint" allows an object creator to execute arbitrary code as the operating…
8.8
High
CVE-2026-6470
Missing authorization in PostgreSQL DDL commands allows an object creator to achieve denial of service against ALTER and…
4.3
Medium
CVE-2026-6464
Untrusted data inclusion in PostgreSQL psql COPY may allow a server administrator to elicit execution of data lines as…
8.1
High