CVE-2025-8714Inclusion of Functionality from Untrusted Control Sphere in Postgresql-13

Severity
8.8HIGHNVD
OSV4.9OSV3.1
EPSS
0.0%
top 91.45%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedAug 14
Latest updateSep 8

Description

Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser 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. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability: 2.8 | Impact: 5.9

Affected Packages5 packages

debiandebian/postgresql-13< postgresql-13 13.22-0+deb11u1 (bullseye)
debiandebian/postgresql-15< postgresql-13 13.22-0+deb11u1 (bullseye)
debiandebian/postgresql-17< postgresql-13 13.22-0+deb11u1 (bullseye)

🔴Vulnerability Details

3
OSV
postgresql-14, postgresql-16, postgresql-17 vulnerabilities2025-09-08
GHSA
GHSA-6m5q-cc57-2mj6: Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time executio2025-08-14
OSV
CVE-2025-8714: Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time executio2025-08-14

📋Vendor Advisories

4
Ubuntu
PostgreSQL vulnerabilities2025-09-08
Red Hat
postgresql: PostgreSQL code execution in restore operation2025-08-14
Microsoft
PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client2025-08-12
Debian
CVE-2025-8714: postgresql-13 - Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser o...2025