CVE-2025-8715 in Class products
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 i...
Affects 0 products from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Class | — | — |
| Client | — | — |
| Postgresql | — | — |
| Target | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-8715 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-045418-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2025-08-14 |
| Last modified | 2026-04-15 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-93: CWE-93
Related attack patterns (CAPEC)
CAPEC-81 Web Server Logs Tampering via CWE-93
CAPEC-15 Command Delimiters via CWE-93
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2025-8715 in PostgreSQL allows for arbitrary code execution and SQL injection due to improper newline neutralization in pg_dump, affecting pg_dumpall and pg_restore.
An attacker can inject arbitrary code during the restore process by crafting object names that include newline characters, leading to command execution as the client OS account running psql. This can also result in SQL injection with superuser privileges on the restore target server.
Questions
What is CVE-2025-8715?
CVE-2025-8715 in PostgreSQL allows for arbitrary code execution and SQL injection due to improper newline neutralization in pg_dump, affecting pg_dumpall and pg_restore.
What is the CVSS score for CVE-2025-8715?
CVE-2025-8715 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.8%.
Is CVE-2025-8715 actively exploited?
No confirmed active exploitation of CVE-2025-8715 as of 2026-05-30.
How do I remediate CVE-2025-8715?
Priority: IMMEDIATE.
What systems are affected by CVE-2025-8715?
CVE-2025-8715 affects Class; Client; Postgresql; Target.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Class","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.