{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-40897 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-40897 is a high-severity memory corruption vulnerability in GStreamer ORC, published on 26 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-40897 and fix it if it is affected.\n\nWhat it is: CVE-2024-40897 is a high-severity memory corruption vulnerability in GStreamer ORC, published on 26 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-40897 in the wild and no public exploit code.\n\nAffected product: GStreamer ORC. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-40897/ (Markdown: https://insights.sbomify.com/CVE-2024-40897/index.md)","id":"CVE-2024-40897","markdown":"https://insights.sbomify.com/CVE-2024-40897/index.md","name":"CVE-2024-40897","record":{"aliases":["ALPINE-CVE-2024-40897","ALSA-2024:5306","ALSA-2024:6184","AZL-47050","AZL-47122","CLSA-2024-1725650489","CLSA-2025-1755114348","DEBIAN-CVE-2024-40897","GHSA-247v-6wr5-3wf3","MGASA-2024-0288","OESA-2024-1975","RHSA-2024:5306","RHSA-2024:5629","RHSA-2024:5638","RHSA-2024:5882","RHSA-2024:6159","RHSA-2024:6184","RLSA-2024:5306","ROOT-OS-DEBIAN-12-CVE-2024-40897","SUSE-SU-2024:2643-1","SUSE-SU-2024:2663-1","SUSE-SU-2025:0314-1","SUSE-SU-2025:0344-1","SUSE-SU-2025:20060-1","SUSE-SU-2025:20152-1","SUSE-SU-2025:20272-1","UBUNTU-CVE-2024-40897","USN-6964-1","USN-6964-2","openSUSE-SU-2024:14216-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"ORC compiler library","requires_auth":"none","summary":"A stack-based buffer overflow in the ORC compiler allows arbitrary code execution when processing crafted files, compromising developer and CI environments.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"jpcert","cpe":[{"product":"orc","vendor":"gstreamer"}],"cvss":{"score":7,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"Stack-based buffer overflow vulnerability exists in orcparse.c of ORC versions prior to 0.4.39. If a developer is tricked to process a specially crafted file with the affected ORC compiler, an arbitrary code may be executed on the developer's build environment. This may lead to compromise of developer machines or CI build environments.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_tus:8.4::appstream","Rocky Linux:8","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 High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 12 SP5-LTSS","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 15 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","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 Server for SAP Applications 15 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Leap Micro 5.5","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":"Memory corruption in ORC","id":"CVE-2024-40897","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2024"},"n_packages":109,"n_references":4,"next":{"headline":"Apache HTTP Server: SSRF with mod_rewrite in server/vhost context on Windows","id":"CVE-2024-40898"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/almalinux/orc","source":"ALSA-2024:5306"},{"ecosystem":"AlmaLinux:8","fixed":["0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/almalinux/orc-compiler","source":"ALSA-2024:5306"},{"ecosystem":"AlmaLinux:8","fixed":["0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc-devel","purl":"pkg:rpm/almalinux/orc-devel","source":"ALSA-2024:5306"},{"ecosystem":"AlmaLinux:9","fixed":["0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/almalinux/orc","source":"ALSA-2024:6184"},{"ecosystem":"AlmaLinux:9","fixed":["0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/almalinux/orc-compiler","source":"ALSA-2024:6184"},{"ecosystem":"AlmaLinux:9","fixed":["0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc-devel","purl":"pkg:rpm/almalinux/orc-devel","source":"ALSA-2024:6184"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/redhat/orc","source":"RHSA-2024:5306"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/redhat/orc-compiler","source":"RHSA-2024:5306"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc-compiler-debuginfo","purl":"pkg:rpm/redhat/orc-compiler-debuginfo","source":"RHSA-2024:5306"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc-debuginfo","purl":"pkg:rpm/redhat/orc-debuginfo","source":"RHSA-2024:5306"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc-debugsource","purl":"pkg:rpm/redhat/orc-debugsource","source":"RHSA-2024:5306"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.4.28-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"orc-devel","purl":"pkg:rpm/redhat/orc-devel","source":"RHSA-2024:5306"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/redhat/orc","source":"RHSA-2024:6184"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/redhat/orc-compiler","source":"RHSA-2024:6184"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc-compiler-debuginfo","purl":"pkg:rpm/redhat/orc-compiler-debuginfo","source":"RHSA-2024:6184"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc-debuginfo","purl":"pkg:rpm/redhat/orc-debuginfo","source":"RHSA-2024:6184"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc-debugsource","purl":"pkg:rpm/redhat/orc-debugsource","source":"RHSA-2024:6184"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.4.31-7.el9_4"],"introduced":["0"],"last_affected":[],"package":"orc-devel","purl":"pkg:rpm/redhat/orc-devel","source":"RHSA-2024:6184"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.4.28-4.el8_2"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/redhat/orc","source":"RHSA-2024:5882"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.4.28-4.el8_2"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/redhat/orc-compiler","source":"RHSA-2024:5882"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.4.28-4.el8_2"],"introduced":["0"],"last_affected":[],"package":"orc-compiler-debuginfo","purl":"pkg:rpm/redhat/orc-compiler-debuginfo","source":"RHSA-2024:5882"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.4.28-4.el8_2"],"introduced":["0"],"last_affected":[],"package":"orc-debuginfo","purl":"pkg:rpm/redhat/orc-debuginfo","source":"RHSA-2024:5882"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.4.28-4.el8_2"],"introduced":["0"],"last_affected":[],"package":"orc-debugsource","purl":"pkg:rpm/redhat/orc-debugsource","source":"RHSA-2024:5882"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:0.4.28-4.el8_2"],"introduced":["0"],"last_affected":[],"package":"orc-devel","purl":"pkg:rpm/redhat/orc-devel","source":"RHSA-2024:5882"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/redhat/orc","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/redhat/orc-compiler","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-compiler-debuginfo","purl":"pkg:rpm/redhat/orc-compiler-debuginfo","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-debuginfo","purl":"pkg:rpm/redhat/orc-debuginfo","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-debugsource","purl":"pkg:rpm/redhat/orc-debugsource","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-devel","purl":"pkg:rpm/redhat/orc-devel","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/redhat/orc","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/redhat/orc-compiler","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-compiler-debuginfo","purl":"pkg:rpm/redhat/orc-compiler-debuginfo","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-debuginfo","purl":"pkg:rpm/redhat/orc-debuginfo","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-debugsource","purl":"pkg:rpm/redhat/orc-debugsource","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:0.4.28-4.el8_4"],"introduced":["0"],"last_affected":[],"package":"orc-devel","purl":"pkg:rpm/redhat/orc-devel","source":"RHSA-2024:6159"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:0.4.31-7.el9_0"],"introduced":["0"],"last_affected":[],"package":"orc","purl":"pkg:rpm/redhat/orc","source":"RHSA-2024:5629"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:0.4.31-7.el9_0"],"introduced":["0"],"last_affected":[],"package":"orc-compiler","purl":"pkg:rpm/redhat/orc-compiler","source":"RHSA-2024:5629"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:0.4.31-7.el9_0"],"introduced":["0"],"last_affected":[],"package":"orc-compiler-debuginfo","purl":"pkg:rpm/redhat/orc-compiler-debuginfo","source":"RHSA-2024:5629"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:0.4.31-7.el9_0"],"introduced":["0"],"last_affected":[],"package":"orc-debuginfo","purl":"pkg:rpm/redhat/orc-debuginfo","source":"RHSA-2024:5629"}],"prev":{"headline":"XML external entity in libxml2","id":"CVE-2024-40896"},"products":["ORC"],"published":"2024-07-26","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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-02-13","vendors":["GStreamer"]},"summary":"A stack-based buffer overflow in the ORC compiler allows arbitrary code execution when processing crafted files, compromising developer and CI environments.","url":"https://insights.sbomify.com/CVE-2024-40897/"}