Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-8715 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://www.postgresql.org/support/security/CVE-2025-8715/ PostgreSQLAdvisoryRemedyVendor

Weakness Enumeration

CWE-IDCWE NameSource
CWE-93Improper Neutralization of CRLF Sequences ('CRLF Injection')PostgreSQL

Affected Products

ProductVersions
PostgreSQL pg_dump
< 17.6
< 16.10
< 15.14
< 14.19
< 13.22

CPE

  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 17.6moderate effort
  • Upgrade: 16.10moderate effort
  • Upgrade: 15.14moderate effort
  • Upgrade: 14.19moderate effort
  • Upgrade: 13.22moderate effort
PostgreSQL pg_dumpall
All versions

CPE

  • No CPEs found in CPE dictionary for this product.

Remediation

  • No remediation found in references.
PostgreSQL pg_restore
All versions

CPE

  • No CPEs found in CPE dictionary for this product.

Remediation

  • No remediation found in references.
PostgreSQL pg_upgrade
All versions

CPE

  • No CPEs found in CPE dictionary for this product.

Remediation

  • No remediation found in references.

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-8715
NVD Published Date:
Aug 14, 2025
NVD Last Modified:
Jun 17, 2026
Source:
PostgreSQL
CVE-2025-8715 Details - Not Deferred