CVE-2025-8715
Public on 2025-08-14
Modified on 2025-08-15
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.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
Platform | Package | Release Date | Advisory | Status |
---|---|---|---|---|
Amazon Linux 2 - Postgresql13 Extra | postgresql | 2025-09-04 | ALAS2POSTGRESQL13-2025-012 | Fixed |
Amazon Linux 2 - Postgresql14 Extra | postgresql | 2025-09-04 | ALAS2POSTGRESQL14-2025-019 | Fixed |
Amazon Linux 2 - Core | postgresql | Not Affected | ||
Amazon Linux 2023 | postgresql15 | 2025-09-08 | ALAS2023-2025-1165 | Fixed |
Amazon Linux 2023 | postgresql16 | Pending Fix | ||
Amazon Linux 2023 | postgresql17 | 2025-09-08 | ALAS2023-2025-1158 | Fixed |
Amazon Linux 1 | postgresql92 | No Fix Planned | ||
Amazon Linux 1 | postgresql93 | No Fix Planned | ||
Amazon Linux 1 | postgresql94 | No Fix Planned | ||
Amazon Linux 1 | postgresql95 | No Fix Planned | ||
Amazon Linux 1 | postgresql96 | No Fix Planned |
CVSS Scores
Score Type | Score | Vector | |
---|---|---|---|
Amazon Linux | CVSSv3 | 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
NVD | CVSSv3 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |