CVE-2025-8715 | PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server

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.

Published: 2025-08-14 Last update: 2026-04-15 Assigner: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 Source: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Conclusion & alert: CVE-2025-8715 is rated Moderate Risk (51.9/100): CVSS High severity, with low exploitation likelihood (EPSS 0.24%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-8715

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-10 0.05% 0.24% +0.19%
2 2026-04-19 0.03% 0.05% +0.03%
3 2026-01-10 0.03%

Full EPSS history (7 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-8715

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 5.9 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Weakness enumeration for CVE-2025-8715

OS Trackers for CVE-2025-8715

vendor priority summary link
alpine high CVE-2025-8715: 4 source package rows (postgresql, postgresql15, postgresql16, postgresql17); 20 state rows across 7 repos (3.19-main, 3.20-main, 3.21-main, 3.22-community, 3.22-main, edge-community, edge-main); fixed 13, open 7. https://security.alpinelinux.org/vuln/CVE-2025-8715
debian not yet assigned CVE-2025-8715 not yet assigned priority: Debian including 3 source packages (postgresql-13, postgresql-15, postgresql-17), 3 status rows across 3 suites (bookworm, bullseye, trixie): resolved 3. https://security-tracker.debian.org/tracker/CVE-2025-8715
redhat high https://access.redhat.com/security/cve/CVE-2025-8715
suse high CVE-2025-8715 severity important: SUSE including 587 source package names (0.6.18-12.6:libpq5-17.6-150600.13.16.1, 2.13.2-3.3:libpq5-17.6-150600.13.16.1, …), 1589 product×package rows across 64 product lines (Container containers/open-webui, Container private-registry/harbor-db, … (64 product lines)): Fixed 1089, Known Not Affected 269, Known Affected 231. https://www.suse.com/security/cve/CVE-2025-8715/
ubuntu medium CVE-2025-8715 medium priority: Ubuntu including 7 source packages (postgresql-10, postgresql-12, …), 39 status rows across 9 suites (bionic, focal, jammy, noble, plucky, questing, trusty, upstream, xenial): DNE 24, released 7, ignored 4, needs-triage 3, deferred 1. https://ubuntu.com/security/CVE-2025-8715

Affected software / configurations for CVE-2025-8715

Vendor Product Version Raw CPE
No affected products in dataset.

References for CVE-2025-8715

cvelogic Threat Intelligence