{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-41817 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-41817 is a high-severity code injection vulnerability in Imagemagick Imagemagick, published on 29 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-41817 and fix it if it is affected.\n\nWhat it is: CVE-2024-41817 is a high-severity code injection vulnerability in Imagemagick Imagemagick, published on 29 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-41817 exists.\n\nAffected product: Imagemagick Imagemagick. 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-41817/ (Markdown: https://insights.sbomify.com/CVE-2024-41817/index.md)","id":"CVE-2024-41817","markdown":"https://insights.sbomify.com/CVE-2024-41817/index.md","name":"CVE-2024-41817","record":{"aliases":["GHSA-8rxc-922v-phg8","JLSEC-2026-913"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"ImageMagick AppImage","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code by placing malicious files in the current working directory due to unsafe environment variable handling in the AppImage version.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"imagemagick","vendor":"imagemagick"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"description":"ImageMagick is a free and open-source software suite, used for editing and manipulating digital images. The `AppImage` version `ImageMagick` might use an empty path when setting `MAGICK_CONFIGURE_PATH` and `LD_LIBRARY_PATH` environment variables while executing, which might lead to arbitrary code execution by loading malicious configuration files or shared libraries in the current working directory while executing `ImageMagick`. The vulnerability is fixed in 7.11-36.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-03-19","github_poc":2,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-03-19T00:48:54Z","kind":"github_poc","ref":"https://github.com/Dxsk/CVE-2024-41817-poc","stars":4,"title":"CVE-2024-41817 POC ImageMagick \u003c= 7.1.1-35 Arbitrary Code Execution"},{"date":"2025-06-21T11:32:09Z","kind":"github_poc","ref":"https://github.com/maikneysm/AutoPwn-Titanic.htb","stars":0,"title":"This is an automated exploitation script for the Hack The Box machine *Titanic*. It extracts Gitea user hashes via LFI, assists in cracking them, and exploits an ImageMagick vulnerability (CVE-2024-41817) to gain root access via a malicious shared library."}],"tier":"weaponised"},"has_fix":true,"headline":"Arbitrary Code Execution in `AppImage` version `ImageMagick`","id":"CVE-2024-41817","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"imagemagick:imagemagick","products":["imagemagick:imagemagick"],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"ReDOS at currency parsing fast-xml-parser","id":"CVE-2024-41818"},"packages":[],"prev":{"headline":"WordPress Cooked Plugin Persistent Cross-Site Scripting via Shortcode","id":"CVE-2024-41816"},"products":["ImageMagick"],"published":"2024-07-29","related":[{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2019-19952","kev_date_added":null,"published":"2019-12-24"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2018-16328","kev_date_added":null,"published":"2018-09-01"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2018-16329","kev_date_added":null,"published":"2018-09-01"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2017-18210","kev_date_added":null,"published":"2018-03-01"},{"cvss_score":9.8,"headline":"Denial of service in n/a","id":"CVE-2017-14138","kev_date_added":null,"published":"2017-09-04"},{"cvss_score":9.8,"headline":"Denial of service in n/a","id":"CVE-2014-9826","kev_date_added":null,"published":"2017-03-30"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2016-10144","kev_date_added":null,"published":"2017-03-24"}],"sources":[{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["ImageMagick"]},"summary":"Attackers can execute arbitrary code by placing malicious files in the current working directory due to unsafe environment variable handling in the AppImage version.","url":"https://insights.sbomify.com/CVE-2024-41817/"}