Time-of-check Time-of-use (TOCTOU) race condition in pgdump in PostgreSQL allows an object creator to execute arbitrary SQL functions as the user running pgdump, 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.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-7348.json"
[
{
"events": [
{
"introduced": "12.0"
},
{
"fixed": "12.20"
}
]
},
{
"events": [
{
"introduced": "13.0"
},
{
"fixed": "13.16"
}
]
},
{
"events": [
{
"introduced": "14.0"
},
{
"fixed": "14.13"
}
]
},
{
"events": [
{
"introduced": "15.0"
},
{
"fixed": "15.8"
}
]
},
{
"events": [
{
"introduced": "16.0"
},
{
"fixed": "16.4"
}
]
}
]