cbcvebase.
CVE-2025-8715
published 2025-08-14

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…

PriorityP352high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
0.39%
30.6th percentile
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

5 ranges
VendorProductVersion rangeFixed in
debianpostgresql-13< postgresql-13 13.22-0+deb11u1 (bullseye)postgresql-13 13.22-0+deb11u1 (bullseye)
debianpostgresql-15< postgresql-13 13.22-0+deb11u1 (bullseye)postgresql-13 13.22-0+deb11u1 (bullseye)
debianpostgresql-17< postgresql-13 13.22-0+deb11u1 (bullseye)postgresql-13 13.22-0+deb11u1 (bullseye)
msrcazl3_postgresql_16.9-1_on_azure_linux_3.0
msrccbl2_postgresql_14.18-1_on_cbl_mariner_2.0

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
osv6.8MEDIUM
vendor_msrc8.8HIGH
vendor_debian6.8MEDIUM
vendor_redhat6.8MEDIUM
vendor_ubuntu3.1LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.