CVE Explorer
CVE-2025-8715
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"PostgreSQL","vendor":"n/a","versions":[{"lessThan":"17.6","status":"affected","version":"17","versionType":"rpm"},{"lessThan":"16.10","status":"affected","version":"16","versionType":"rpm"},{"lessThan":"15.14","status":"affected","version":"15","versionType":"rpm"},{"lessThan":"14.19","status":"affected","version":"14","versionType":"rpm"},{"lessThan":"13.22","status":"affected","version":"11.20","versionType":"rpm"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:5c0da6b6639a061408f65c29121a37e1a66af20f3220eef345637c038437f0dc · sha256:542b5ec14ed33b77… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":8.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:5c0da6b6639a061408f65c29121a37e1a66af20f3220eef345637c038437f0dc · sha256:542b5ec14ed33b77… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-93","description":"Improper Neutralization of CRLF Sequences ('CRLF Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:5c0da6b6639a061408f65c29121a37e1a66af20f3220eef345637c038437f0dc · sha256:542b5ec14ed33b77… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"url":"https://www.postgresql.org/support/security/CVE-2025-8715/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5c0da6b6639a061408f65c29121a37e1a66af20f3220eef345637c038437f0dc · sha256:542b5ec14ed33b77… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.