Name | CVE-2025-8715 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-4273-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | vulnerable |
bullseye (security) | 13.22-0+deb11u1 | fixed | |
postgresql-15 (PTS) | bookworm | 15.14-0+deb12u1 | fixed |
bookworm (security) | 15.10-0+deb12u1 | vulnerable | |
postgresql-17 (PTS) | trixie | 17.6-0+deb13u1 | fixed |
forky, sid | 17.6-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
postgresql-13 | source | bullseye | 13.22-0+deb11u1 | DLA-4273-1 | ||
postgresql-13 | source | (unstable) | (unfixed) | |||
postgresql-15 | source | bookworm | 15.14-0+deb12u1 | |||
postgresql-15 | source | (unstable) | (unfixed) | |||
postgresql-17 | source | trixie | 17.6-0+deb13u1 | |||
postgresql-17 | source | (unstable) | 17.6-1 |
https://www.postgresql.org/about/news/postgresql-176-1610-1514-1419-1322-and-18-beta-3-released-3118/
https://www.postgresql.org/support/security/CVE-2025-8715/