CVE-2025-8715 Details
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.
A vulnerability in PostgreSQL's pg_dump utility prior to versions 17.6, 16.10, 15.14, 14.19, and 13.22 allows for improper handling of newlines in object names. This flaw enables users to inject arbitrary code that is executed during the restoration process, using the client operating system account that runs psql. Additionally, this vulnerability can be exploited to perform SQL injection as a superuser on the target server during restoration. The issue also affects pg_dumpall, pg_restore, and pg_upgrade.
Users can upgrade to PostgreSQL versions 17.6, 16.10, 15.14, 14.19, or 13.22 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 14, 2025CISA-ADP
Assessed Aug 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.postgresql.org/support/security/CVE-2025-8715/ | PostgreSQL | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| PostgreSQL pg_dump | < 17.6 < 16.10 < 15.14 < 14.19 < 13.22 |
CPE
Remediation
| |
| PostgreSQL pg_dumpall | All versions |
CPE
Remediation
| |
| PostgreSQL pg_restore | All versions |
CPE
Remediation
| |
| PostgreSQL pg_upgrade | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 14, 2025 | New CVE Received | PostgreSQL |
Volerion