Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-8714: Inclusion of Functionality from Untrusted Control Sphere in PostgreSQL

0
High
VulnerabilityCVE-2025-8714cvecve-2025-8714
Published: Thu Aug 14 2025 (08/14/2025, 13:00:07 UTC)
Source: CVE Database V5
Product: PostgreSQL

Description

Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser 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. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 04:24:14 UTC

Technical Analysis

CVE-2025-8714 is a vulnerability in PostgreSQL's backup and restore utilities, specifically pg_dump, pg_dumpall, and pg_restore (when generating plain-format dumps). The flaw arises from the inclusion of functionality from an untrusted control sphere, allowing a malicious superuser on the origin PostgreSQL server to embed arbitrary psql meta-commands within the database dump. When this dump is restored using psql, these meta-commands execute with the privileges of the client operating system user running the restore process. This can lead to arbitrary code execution on the client machine, compromising confidentiality, integrity, and availability of the client environment. The vulnerability is similar in nature to MySQL's CVE-2024-21096. Affected PostgreSQL versions include all releases before 17.6, 16.10, 15.14, 14.19, and 13.22. The vulnerability requires no privileges on the client side but does require user interaction to initiate the restore. The CVSS 3.1 base score is 8.8, reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability. No public exploits have been reported yet, but the potential impact is significant given PostgreSQL's widespread use in enterprise and cloud environments.

Potential Impact

The vulnerability allows attackers with superuser access on the origin PostgreSQL server to craft malicious database dumps that execute arbitrary code on the client machine during restore. This can lead to full compromise of the client system running psql, including data theft, system manipulation, or denial of service. Since backups and restores are common administrative tasks, this vulnerability could be exploited to pivot from a compromised database server to client systems, expanding the attack surface. Organizations relying on PostgreSQL for critical data storage and backup operations face risks to data confidentiality, integrity, and availability. The attack requires user interaction to restore the malicious dump, but no client-side privileges are needed, increasing the risk in environments where users restore dumps from untrusted or compromised sources. The vulnerability could disrupt business continuity, lead to data breaches, and facilitate further lateral movement within networks.

Mitigation Recommendations

1. Immediately upgrade PostgreSQL to the fixed versions: 17.6, 16.10, 15.14, 14.19, or 13.22 or later. 2. Avoid restoring database dumps from untrusted or unknown sources. 3. Implement strict access controls to limit superuser privileges on the origin PostgreSQL server to trusted administrators only. 4. Use secure channels and integrity verification (e.g., cryptographic signatures) for transferring dump files to ensure authenticity and integrity. 5. Educate database administrators and users about the risks of restoring dumps from unverified sources and enforce policies requiring validation before restore. 6. Monitor and audit restore activities for unusual or unauthorized operations. 7. Consider isolating client systems used for restore operations to minimize impact in case of exploitation. 8. Review and restrict psql meta-command usage in automated restore scripts where feasible. 9. Stay informed about any emerging exploits or patches related to this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
PostgreSQL
Date Reserved
2025-08-07T16:39:47.007Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 689de1fdad5a09ad005b0bf8

Added to database: 8/14/2025, 1:17:49 PM

Last enriched: 2/27/2026, 4:24:14 AM

Last updated: 3/24/2026, 11:03:19 AM

Views: 112

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses