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.
CVE-2025-8715
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2025-08-14. NVD baseline CVSS 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 8.8(medium)
- EPSS
- 30.5%
- KEV
- Not listed
Published
August 14, 2025
Last Modified
June 17, 2026
References (1)
- f86ef6dc-4d3a-42ad-8f28-e6d5547a5007https://www.postgresql.org/support/security/CVE-2025-8715/
Vendor Advisories for CVE-2025-8715(7)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- patch-release-gitlab-18-4-1-releasedGitLab Security
GitLab Patch Release: 18.4.1, 18.3.3, 18.2.7
- RHSA-2025:15022Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:15 security update
- RHSA-2025:15021Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:13 security update
- RHSA-2025:14899Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:16 security update
- RHSA-2025:14862Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:15 security update
- RHSA-2025:14827Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:16 security update
- RHSA-2025:14826Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql16 security update
Patch Availability(23)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(18)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2025-87152025-09-04
PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server
- Red HatRHSA-2025:14869IMPORTANT2025-08-14
RHSA-2025:14869 — Important
- Red HatRHSA-2025:14870IMPORTANT2025-08-14
RHSA-2025:14870 — Important
- Red HatRHSA-2025:14878IMPORTANT2025-08-14
RHSA-2025:14878 — Important
- Red HatRHSA-2025:15006IMPORTANT2025-08-14
RHSA-2025:15006 — Important
- Red HatRHSA-2025:15012IMPORTANT2025-08-14
RHSA-2025:15012 — Important
- Red HatRHSA-2025:15013IMPORTANT2025-08-14
RHSA-2025:15013 — Important
- Red HatRHSA-2025:15014IMPORTANT2025-08-14
RHSA-2025:15014 — Important
- Red HatRHSA-2025:15015IMPORTANT2025-08-14
RHSA-2025:15015 — Important
- Red HatRHSA-2025:15031IMPORTANT2025-08-14
RHSA-2025:15031 — Important
- Red HatRHSA-2025:15034IMPORTANT2025-08-14
RHSA-2025:15034 — Important
- Red HatRHSA-2025:15057IMPORTANT2025-08-14
RHSA-2025:15057 — Important
- Red HatRHSA-2025:15062IMPORTANT2025-08-14
RHSA-2025:15062 — Important
- Red HatRHSA-2025:15114IMPORTANT2025-08-14
RHSA-2025:15114 — Important
- Red HatRHSA-2025:15115IMPORTANT2025-08-14
RHSA-2025:15115 — Important
- Red HatRHSA-2025:15359IMPORTANT2025-08-14
RHSA-2025:15359 — Important
- Red HatRHSA-2025:15361IMPORTANT2025-08-14
RHSA-2025:15361 — Important
- UbuntuUSN-7741-1MEDIUM
PostgreSQL vulnerabilities
Data Freshness Timeline
(refreshed 7× in last 7d / 43× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 18:42 UTCOSV refresh
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
Show 64 moreShow fewer
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-02 20:02 UTCOSV refresh
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-26 13:44 UTCEPSS rescore
- 2026-05-26 13:44 UTCEPSS rescore
- 2026-05-26 13:44 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-24 16:58 UTCEPSS rescore
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-22 21:16 UTCEPSS rescore
- 2026-05-21 22:43 UTCEPSS rescore
- 2026-05-21 09:50 UTCEG score recompute
- 2026-05-21 09:50 UTCVendor advisory
- 2026-05-21 09:50 UTCGHSA enrichment
- 2026-05-21 02:36 UTCOSV refresh
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-18 21:31 UTCEPSS rescore
Frequently asked(5)
What is CVE-2025-8715?
When was CVE-2025-8715 disclosed?
Is CVE-2025-8715 actively exploited?
What is the CVSS score of CVE-2025-8715?
How do I remediate CVE-2025-8715?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2025-8715
Is Your Infrastructure Affected by CVE-2025-8715?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.