CVE-2025-8715
Last modified
CVE-2025-8715 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.39% chance of exploitation in the next 30 days.
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.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-8715?
How severe is CVE-2025-8715?
How do I fix CVE-2025-8715?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-8708A vulnerability was found in Antabot White-Jotter 0.22. It h…7.5
- CVE-2025-8709A SQL injection vulnerability exists in the langchain-ai/lan…7.3
- CVE-2025-8711CSRF in Ivanti Connect Secure before 22.7R2.9 or 22.8R2, Iva…5.4
- CVE-2025-8712Missing authorization in Ivanti Connect Secure before 22.7R2…5.4
- CVE-2025-8713PostgreSQL optimizer statistics allow a user to read sampled…3.1
- CVE-2025-8714Untrusted data inclusion in pg_dump in PostgreSQL allows a m…8.8
- CVE-2025-8716In Content Management versions 20.4- 25.3 authenticated atta…5.8
- CVE-2025-8719The Translate This gTranslate Shortcode plugin for WordPress…6.4
- CVE-2025-8720The Plugin README Parser plugin for WordPress is vulnerable …6.4
- CVE-2025-8721The Workable Api plugin for WordPress is vulnerable to Store…6.4
- CVE-2025-8722The Content Views plugin for WordPress is vulnerable to Stor…6.4
- CVE-2025-8723The Cloudflare Image Resizing plugin for WordPress is vulner…9.8
Are you affected by CVE-2025-8715?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
