CVE-2025-8714

Aug. 15, 2025, 1:13 p.m.

8.8
High

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.

Product(s) Impacted

Vendor Product Versions
Postgresql
  • Postgresql
  • Pg Dump
  • Pg Dumpall
  • Pg Restore
  • <17.6, <16.10, <15.14, <14.19, <13.22
  • *
  • *
  • *

Weaknesses

Common security weaknesses mapped to this vulnerability.

CWE-829
Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.

*CPE(s)

Affected systems and software identified for this CVE.

Type Vendor Product Version Update Edition Language Software Edition Target Software Target Hardware Other Information
a postgresql postgresql <17.6 / / / / / /
a postgresql postgresql <16.10 / / / / / /
a postgresql postgresql <15.14 / / / / / /
a postgresql postgresql <14.19 / / / / / /
a postgresql postgresql <13.22 / / / / / /
a postgresql pg_dump / / / / / / / /
a postgresql pg_dumpall / / / / / / / /
a postgresql pg_restore / / / / / / / /

CVSS Score

8.8 / 10

CVSS Data - 3.1

  • Attack Vector: NETWORK
  • Attack Complexity: LOW
  • Privileges Required: NONE
  • Scope: UNCHANGED
  • Confidentiality Impact: HIGH
  • Integrity Impact: HIGH
  • Availability Impact: HIGH
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

    View Vector String

Timeline

Published: Aug. 14, 2025, 1:15 p.m.
Last Modified: Aug. 15, 2025, 1:13 p.m.

Status : Awaiting Analysis

CVE has been recently published to the CVE List and has been received by the NVD.

More info

Source

f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

*Disclaimer: Some vulnerabilities do not have an associated CPE. To enhance the data, we use AI to infer CPEs based on CVE details. This is an automated process and might not always be accurate.