{"answers":{"affected":"1 open source package ship an affected version, including postgresql. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-7348 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 12.20.0, 13.16.0, 14.13.0 or 15.8.0.","what":"CVE-2024-7348 is a high-severity vulnerability in Postgresql Postgresql, published on 8 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-7348 and fix it if it is affected.\n\nWhat it is: CVE-2024-7348 is a high-severity vulnerability in Postgresql Postgresql, published on 8 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-7348 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected all versions; fixed in 12.20.0, 13.16.0, 14.13.0, 15.8.0, 16.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-7348/ (Markdown: https://insights.sbomify.com/CVE-2024-7348/index.md)","id":"CVE-2024-7348","markdown":"https://insights.sbomify.com/CVE-2024-7348/index.md","name":"CVE-2024-7348","record":{"aliases":["ALPINE-CVE-2024-7348","ALSA-2024:5999","ALSA-2024:6000","ALSA-2024:6018","AZL-47636","AZL-47690","BELL-CVE-2024-7348","BIT-postgresql-2024-7348","CLEANSTART-2026-PN72397","CLSA-2024-1727453123","CLSA-2024-1728056209","CLSA-2025-1737993791","DEBIAN-CVE-2024-7348","DSA-5745-1","DSA-5746-1","ECHO-e561-1daf-c313","GHSA-3c6g-7v4g-5xcm","JLSEC-2026-52","MGASA-2024-0301","MINI-8hc6-xmh7-p5wg","OESA-2024-1977","OESA-2024-2054","OESA-2024-2055","OESA-2024-2056","RHSA-2024:5999","RHSA-2024:6000","RHSA-2024:6018","RHSA-2024:6137","RHSA-2024:6138","RHSA-2024:6139","RHSA-2024:6140","RHSA-2024:6141","RHSA-2024:6144","RHSA-2024:6145","RHSA-2024:6557","RHSA-2024:6558","RHSA-2024:6559","RHSA-2024:8495","RLSA-2024:5999","RLSA-2024:6000","RLSA-2024:6018","SUSE-SU-2024:3153-1","SUSE-SU-2024:3154-1","SUSE-SU-2024:3158-1","SUSE-SU-2024:3158-2","SUSE-SU-2024:3158-3","SUSE-SU-2024:3160-1","SUSE-SU-2024:3168-1","SUSE-SU-2024:3169-1","SUSE-SU-2024:3170-1","SUSE-SU-2024:3171-1","SUSE-SU-2024:3181-1","SUSE-SU-2024:3191-1","SUSE-SU-2024:3192-1","SUSE-SU-2024:3224-1","UBUNTU-CVE-2024-7348","USN-6968-1","USN-6968-2","USN-6968-3","openSUSE-SU-2024:14348-1","openSUSE-SU-2024:14349-1","openSUSE-SU-2024:14350-1","openSUSE-SU-2024:14351-1","openSUSE-SU-2024:14361-1"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL database","requires_auth":"low_privilege","summary":"A race condition in pg_dump allows attackers to execute arbitrary SQL as the dumping user, potentially escalating privileges to superuser.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PostgreSQL","cpe":[{"product":"postgresql","vendor":"postgresql"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_els:7","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.2::crb","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Legacy 15 SP5","SUSE:Linux Enterprise Module for Legacy 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Server Applications 15 SP5","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"PostgreSQL relation replacement during pg_dump executes arbitrary SQL","id":"CVE-2024-7348","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"postgresql:postgresql","products":["postgresql:postgresql"],"type":"race_condition","year":"2024"},"n_packages":867,"n_references":1,"next":{"headline":"LifterLMS \u003c= 7.7.5 - Authenticated (Admin+) SQL Injection","id":"CVE-2024-7349"},"packages":[{"ecosystem":"Bitnami","fixed":["12.20.0","13.16.0","14.13.0","15.8.0","16.4.0"],"introduced":["0","13.0.0","14.0.0","15.0.0","16.0.0"],"last_affected":[],"package":"postgresql","purl":"pkg:bitnami/postgresql","source":"BIT-postgresql-2024-7348"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.6.0+3095+ee60d910"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.9.0+3704+f1f917ce"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["1.5.0-1.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["1.5.0-1.module_el8.6.0+3095+ee60d910"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.6.0+3095+ee60d910"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.9.0+3704+f1f917ce"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/almalinux/postgresql-pltcl","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/almalinux/postgresql-pltcl","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/almalinux/postgresql-server","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/almalinux/postgresql-server","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/almalinux/postgresql-server-devel","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/almalinux/postgresql-server-devel","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/almalinux/postgresql-static","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/almalinux/postgresql-static","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/almalinux/postgresql-test","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/almalinux/postgresql-test","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/almalinux/postgresql-test-rpm-macros","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/almalinux/postgresql-test-rpm-macros","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/almalinux/postgresql-upgrade","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/almalinux/postgresql-upgrade","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:8","fixed":["12.20-1.module_el8.10.0+3886+1dfe41d7"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/almalinux/postgresql-upgrade-devel","source":"ALSA-2024:6000"},{"ecosystem":"AlmaLinux:8","fixed":["13.16-1.module_el8.10.0+3887+93e5d125"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/almalinux/postgresql-upgrade-devel","source":"ALSA-2024:6018"},{"ecosystem":"AlmaLinux:9","fixed":["13.16-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2024:5999"},{"ecosystem":"AlmaLinux:9","fixed":["13.16-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2024:5999"},{"ecosystem":"AlmaLinux:9","fixed":["13.16-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2024:5999"},{"ecosystem":"AlmaLinux:9","fixed":["13.16-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2024:5999"}],"prev":{"headline":"NGINX MP4 module vulnerability","id":"CVE-2024-7347"},"products":["PostgreSQL"],"published":"2024-08-08","related":[{"cvss_score":10,"headline":"Information disclosure in n/a","id":"CVE-2013-1902","kev_date_added":null,"published":"2013-04-04"},{"cvss_score":10,"headline":"Information disclosure in n/a","id":"CVE-2013-1903","kev_date_added":null,"published":"2013-04-04"},{"cvss_score":10,"headline":"Privilege escalation in n/a","id":"CVE-2007-3279","kev_date_added":null,"published":"2007-06-19"},{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2002-1399","kev_date_added":null,"published":"2003-01-08"},{"cvss_score":9.1,"headline":"Information disclosure in n/a","id":"CVE-2016-3065","kev_date_added":null,"published":"2016-04-11"},{"cvss_score":9,"headline":"Code injection in n/a","id":"CVE-2007-3280","kev_date_added":null,"published":"2007-06-19"},{"cvss_score":8.8,"headline":"PostgreSQL tsvector and tsquery undersize allocations, via integer wraparound","id":"CVE-2026-14662","kev_date_added":null,"published":"2026-08-13"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-22","vendors":["n/a"]},"summary":"A race condition in pg_dump allows attackers to execute arbitrary SQL as the dumping user, potentially escalating privileges to superuser.","url":"https://insights.sbomify.com/CVE-2024-7348/"}