{"id":"CVE-2024-7348","published":"2024-08-08T13:00:02Z","modified":"2024-08-22T18:03:18Z","title":"PostgreSQL relation replacement during pg_dump executes arbitrary SQL","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01565,"percentile":0.75901,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2024-7348/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/08/11/1","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240822-0002/","tags":[]}],"priority":{"score":21.3,"factors":[{"name":"EPSS percentile","points":15.18},{"name":"CVSS severity","points":6.16}]},"affectedVersions":[{"vendor":"n/a","product":"PostgreSQL","versions":[">= 16, < 16.4",">= 15, < 15.8",">= 14, < 14.13",">= 13, < 13.16","< 12.20"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-08-15T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-48286","exploited":false,"provenance":"source"}}