{"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-10979 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 13.17.0, 14.14.0, 15.9.0 or 16.5.0.","what":"CVE-2024-10979 is a high-severity code injection vulnerability in Postgresql Postgresql, published on 14 Nov 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-10979 and fix it if it is affected.\n\nWhat it is: CVE-2024-10979 is a high-severity code injection vulnerability in Postgresql Postgresql, published on 14 Nov 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-10979 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected all versions; fixed in 13.17.0, 14.14.0, 15.9.0, 16.5.0, 17.1.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-10979/ (Markdown: https://insights.sbomify.com/CVE-2024-10979/index.md)","id":"CVE-2024-10979","markdown":"https://insights.sbomify.com/CVE-2024-10979/index.md","name":"CVE-2024-10979","record":{"aliases":["ALPINE-CVE-2024-10979","AZL-53198","AZL-53212","BELL-CVE-2024-10979","BIT-postgresql-2024-10979","CLEANSTART-2026-MY37775","CLSA-2024-1734372021","CLSA-2025-1743011981","CLSA-2025-1747849358","DEBIAN-CVE-2024-10979","ECHO-a285-f305-ca67","GHSA-2r9h-x757-8j9q","JLSEC-2026-50","MINI-85xw-qcmq-j9rh","MINI-cxpm-cwp3-m6w2","MINI-x674-c4fr-r575","RHSA-2024:10593","RHSA-2024:10595","RHSA-2024:10677","RHSA-2024:10705","RHSA-2024:10736","RHSA-2024:10739","RHSA-2024:10750","RHSA-2024:10789","RHSA-2024:10800","RHSA-2024:10807","RHSA-2024:10827","RHSA-2024:10846","RHSA-2024:10851","RHSA-2024:10879","RHSA-2024:10882","UBUNTU-CVE-2024-10979"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL database","requires_auth":"low_privilege","summary":"An unprivileged database user can modify environment variables in PL/Perl to execute arbitrary code on the server.","user_interaction":"not_required","vuln_class":"code_injection"},"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-610","name":"Externally Controlled Reference to a Resource in Another Sphere"},{"id":"CWE-15","name":"External Control of System or Configuration Setting"}],"description":"Incorrect control of environment variables in PostgreSQL PL/Perl allows an unprivileged database user to change sensitive process environment variables (e.g. PATH).  That often suffices to enable arbitrary code execution, even if the attacker lacks a database server operating system user.  Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.","ecosystems":["Bitnami","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_eus:9.4::appstream","Red Hat:rhel_eus:9.4::crb","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream"],"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 PL/Perl environment variable changes execute arbitrary code","id":"CVE-2024-10979","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"postgresql:postgresql","products":["postgresql:postgresql"],"type":"code_injection","year":"2024"},"n_packages":752,"n_references":1,"next":{"headline":"Element Pack Elementor Addons \u003c 5.10.3 - Contributor+ Stored XSS","id":"CVE-2024-10980"},"packages":[{"ecosystem":"Bitnami","fixed":["13.17.0","14.14.0","15.9.0","16.5.0","17.1.0"],"introduced":["0","14.0.0","15.0.0","16.0.0","17.0.0"],"last_affected":[],"package":"postgresql","purl":"pkg:bitnami/postgresql","source":"BIT-postgresql-2024-10979"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.4.0-4.module+el8.2.0+9043+1dbb5661"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/redhat/pgaudit","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.4.0-4.module+el8.2.0+9043+1dbb5661"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debuginfo","purl":"pkg:rpm/redhat/pgaudit-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.4.0-4.module+el8.2.0+9043+1dbb5661"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debugsource","purl":"pkg:rpm/redhat/pgaudit-debugsource","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.10.0-2.module+el8.2.0+9043+1dbb5661"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/redhat/postgres-decoderbufs","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.10.0-2.module+el8.2.0+9043+1dbb5661"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs-debuginfo","purl":"pkg:rpm/redhat/postgres-decoderbufs-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.10.0-2.module+el8.2.0+9043+1dbb5661"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs-debugsource","purl":"pkg:rpm/redhat/postgres-decoderbufs-debugsource","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/redhat/postgresql","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/redhat/postgresql-contrib","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib-debuginfo","purl":"pkg:rpm/redhat/postgresql-contrib-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-debuginfo","purl":"pkg:rpm/redhat/postgresql-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-debugsource","purl":"pkg:rpm/redhat/postgresql-debugsource","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/redhat/postgresql-docs","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs-debuginfo","purl":"pkg:rpm/redhat/postgresql-docs-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/redhat/postgresql-plperl","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl-debuginfo","purl":"pkg:rpm/redhat/postgresql-plperl-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/redhat/postgresql-plpython3","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3-debuginfo","purl":"pkg:rpm/redhat/postgresql-plpython3-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/redhat/postgresql-pltcl","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl-debuginfo","purl":"pkg:rpm/redhat/postgresql-pltcl-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/redhat/postgresql-server","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/redhat/postgresql-server-devel","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-devel-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/redhat/postgresql-static","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/redhat/postgresql-test","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-debuginfo","purl":"pkg:rpm/redhat/postgresql-test-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/redhat/postgresql-test-rpm-macros","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/redhat/postgresql-upgrade","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/redhat/postgresql-upgrade-devel","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.22-1.module+el8.2.0+22565+6ef52370"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-devel-debuginfo","source":"RHSA-2024:10739"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.4.0-6.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/redhat/pgaudit","source":"RHSA-2024:10789"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.5.0-1.module+el8.4.0+8873+b821c30a"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/redhat/pgaudit","source":"RHSA-2024:10846"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.4.0-6.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debuginfo","purl":"pkg:rpm/redhat/pgaudit-debuginfo","source":"RHSA-2024:10789"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.5.0-1.module+el8.4.0+8873+b821c30a"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debuginfo","purl":"pkg:rpm/redhat/pgaudit-debuginfo","source":"RHSA-2024:10846"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.4.0-6.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debugsource","purl":"pkg:rpm/redhat/pgaudit-debugsource","source":"RHSA-2024:10789"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.5.0-1.module+el8.4.0+8873+b821c30a"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debugsource","purl":"pkg:rpm/redhat/pgaudit-debugsource","source":"RHSA-2024:10846"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.10.0-2.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/redhat/postgres-decoderbufs","source":"RHSA-2024:10789"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.10.0-2.module+el8.4.0+8873+b821c30a"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/redhat/postgres-decoderbufs","source":"RHSA-2024:10846"}],"prev":{"headline":"PostgreSQL SET ROLE, SET SESSION AUTHORIZATION reset to wrong user ID","id":"CVE-2024-10978"},"products":["PostgreSQL"],"published":"2024-11-14","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":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"2025-11-03","vendors":["n/a"]},"summary":"An unprivileged database user can modify environment variables in PL/Perl to execute arbitrary code on the server.","url":"https://insights.sbomify.com/CVE-2024-10979/"}