V
Scaner-VS
HomeCatalogSourcesCWECAPECATT&CKMitigationsProductsVendorsDocs
CVE-2025-8715
ANC
High

Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code for restore-time e…

CVSS
8.8
High
EPSS
0.00
p30
Published
2025-01-01
Updated
2025-01-01
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.

Tags · CWE
Pre-authSQLi
CWE-89
CWE-93
CAPEC-7
CAPEC-15
CAPEC-66
CAPEC-81
CAPEC-108
CAPEC-109
CAPEC-110
CAPEC-470
Affected products
Postgresql-11Postgresql-11Postgresql-13Postgresql-14Postgresql-15Postgresql-15Postgresql-16Postgresql-17Postgresql-17Postgresql-17Postgresql-17
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Timeline
2025-01-01
Published
2025-01-01
Updated
CVSS 3.1 breakdown
Attack Vector
AV: N
Network (N)
Attack Complexity
AC: L
Low (L)
Privileges Required
PR: N
None (N)
User Interaction
UI: R
Required (R)
Scope
S: U
Unchanged (U)
Confidentiality Impact
C: H
High (H)
Integrity Impact
I: H
High (H)
Availability Impact
A: H
High (H)
Exploit indicators
EPSS
0.004 · p30
Known exploited (KEV)
No
Known exploits — Сканер-ВС
No Сканер-ВС checks registered for this vulnerability yet.
Affected products
ProductVendorStatus
Tracked
postgresql-11Tracked
postgresql-11Tracked
postgresql-13Tracked
postgresql-14Tracked
postgresql-15Tracked
postgresql-15Tracked
postgresql-16Tracked
postgresql-17Tracked
postgresql-17Tracked
postgresql-17Tracked
postgresql-17Tracked