{ "data_version": "4.0", "data_type": "CVE", "data_format": "MITRE", "CVE_data_meta": { "ID": "CVE-2024-7348", "ASSIGNER": "cna@postgresql.org", "STATE": "PUBLIC" }, "description": { "description_data": [ { "lang": "eng", "value": "Time-of-check Time-of-use (TOCTOU) race condition in pg_dump in PostgreSQL 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. Versions before PostgreSQL 16.4, 15.8, 14.13, 13.16, and 12.20 are affected." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "Time-of-check Time-of-use (TOCTOU) Race Condition", "cweId": "CWE-367" } ] } ] }, "affects": { "vendor": { "vendor_data": [ { "vendor_name": "n/a", "product": { "product_data": [ { "product_name": "PostgreSQL", "version": { "version_data": [ { "version_affected": "<", "version_name": "16", "version_value": "16.4" }, { "version_affected": "<", "version_name": "15", "version_value": "15.8" }, { "version_affected": "<", "version_name": "14", "version_value": "14.13" }, { "version_affected": "<", "version_name": "13", "version_value": "13.16" }, { "version_affected": "<", "version_name": "0", "version_value": "12.20" } ] } } ] } } ] } }, "references": { "reference_data": [ { "url": "https://www.postgresql.org/support/security/CVE-2024-7348/", "refsource": "MISC", "name": "https://www.postgresql.org/support/security/CVE-2024-7348/" } ] }, "configuration": [ { "lang": "en", "value": "attacker has permission to create non-temporary objects in at least one schema" } ], "credits": [ { "lang": "en", "value": "The PostgreSQL project thanks Noah Misch for reporting this problem." } ], "impact": { "cvss": [ { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH" } ] } }