OESA-2024-2056 (CVE-2024-7348)
Vulnerability from osv_openeuler – Published: 2024-08-23 11:07 – Updated: 2026-08-06 11:07 – Source websitePostgreSQL is an advanced Object-Relational database management system (DBMS) that supports almost all SQL constructs (including transactions, subselects and user-defined types and functions). The postgresql package includes the client programs and libraries that you'll need to access a PostgreSQL DBMS server.
Security Fix(es):
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.(CVE-2024-7348)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"postgresql-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-contrib-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-debuginfo-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-debugsource-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-docs-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-llvmjit-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-plperl-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-plpython3-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-pltcl-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-private-devel-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-private-libs-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-server-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-server-devel-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-static-13.16-1.oe2203sp3.aarch64.rpm",
"postgresql-test-13.16-1.oe2203sp3.aarch64.rpm"
],
"noarch": [
"postgresql-test-rpm-macros-13.16-1.oe2203sp3.noarch.rpm"
],
"src": [
"postgresql-13.16-1.oe2203sp3.src.rpm"
],
"x86_64": [
"postgresql-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-contrib-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-debuginfo-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-debugsource-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-docs-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-llvmjit-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-plperl-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-plpython3-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-pltcl-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-private-devel-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-private-libs-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-server-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-server-devel-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-static-13.16-1.oe2203sp3.x86_64.rpm",
"postgresql-test-13.16-1.oe2203sp3.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:22.03-LTS-SP3",
"name": "postgresql",
"purl": "pkg:rpm/openEuler/postgresql\u0026distro=openEuler-22.03-LTS-SP3"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "13.16-1.oe2203sp3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "High"
},
"details": "PostgreSQL is an advanced Object-Relational database management system (DBMS) that supports almost all SQL constructs (including transactions, subselects and user-defined types and functions). The postgresql package includes the client programs and libraries that you\u0026apos;ll need to access a PostgreSQL DBMS server.\r\n\r\nSecurity Fix(es):\r\n\r\nTime-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.(CVE-2024-7348)",
"id": "OESA-2024-2056",
"modified": "2026-08-06T11:07:31Z",
"published": "2024-08-23T11:07:31Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2024-2056"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-7348"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "postgresql security update",
"upstream": [
"CVE-2024-7348"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.