CVE-2024-7348
Postgresql
CVE-2024-7348 is a critical Time-of-check Time-of-use (TOCTOU) race condition vulnerability affecting pg_dump in PostgreSQL. It allows a malicious object creator to execute arbitrary SQL functions with the privileges of the user running pg_dump, typically a superuser. While the CVSS score is 7.5, the SOCRadar Vulnerability Risk Score (SVRS) of 71 indicates a high risk that should be addressed promptly. An attacker can exploit this by replacing a relation with a view or foreign table while pg_dump is running. This vulnerability is significant because successful exploitation grants elevated privileges, potentially compromising the entire database. Patches are available for PostgreSQL versions 16.4, 15.8, 14.13, 13.16, and 12.20, so immediate updating is strongly advised to mitigate this threat. Due to the In The Wild tag it is highly recommended that you apply the relevant patches.
Description
CVE-2024-7348 is a Time-of-check Time-of-use (TOCTOU) race condition vulnerability in pg_dump in PostgreSQL. It allows an object creator to execute arbitrary SQL functions as the user running pg_dump, which is often a superuser. The attack involves replacing another relation type with a view or foreign table. The attack requires waiting for pg_dump to start, but winning the race condition is trivial if the attacker retains an open transaction.
Key Insights
- The vulnerability has a CVSS score of 8.8, indicating high severity.
- The SVRS score of 36 indicates a moderate level of risk.
- The vulnerability affects PostgreSQL versions before 16.4, 15.8, 14.13, 13.16, and 12.20.
Mitigation Strategies
- Update to PostgreSQL version 16.4, 15.8, 14.13, 13.16, or 12.20 or later.
- Restrict access to the pg_dump utility to only authorized users.
- Monitor for suspicious activity and investigate any unauthorized access to the database.
Additional Information
- The Cybersecurity and Infrastructure Security Agency (CISA) has warned of the vulnerability, calling for immediate and necessary measures.
- Active exploits have been published.
- If users have additional queries regarding this incident, they can use the 'Ask to Analyst' feature, contact SOCRadar directly, or open a support ticket for more information if necessary.
Indicators of Compromise
Exploits
News
Social Media
Affected Software
References
CWE Details
CVE Radar
Real-time CVE Intelligence & Vulnerability Management Platform
CVE Radar provides comprehensive vulnerability intelligence by monitoring CVE databases, security advisories, and threat feeds. Get instant updates on new vulnerabilities, exploit details, and mitigation strategies specific to your assets.