
Cloud Vulnerability DB
A community-led vulnerabilities database
ImageMagick's AppImage version contains a vulnerability (CVE-2024-41817) where empty paths in environment variables MAGICK_CONFIGURE_PATH and LD_LIBRARY_PATH could lead to arbitrary code execution. The vulnerability affects versions up to 7.11-36 and was discovered in July 2024. The issue specifically impacts the AppImage distribution of ImageMagick, a free and open-source software suite used for editing and manipulating digital images (GitHub Advisory).
The vulnerability stems from the AppRun script using empty paths when setting environment variables. When ImageMagick runs without pre-set MAGICK_CONFIGURE_PATH and LD_LIBRARY_PATH variables, the script may include empty paths (::) at the beginning of MAGICK_CONFIGURE_PATH and trailing colons (:) in both variables. This occurs due to hardcoded version numbers in paths and undefined environment variables. The CVSS v3.1 score is 7.8 (High) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).
The vulnerability allows attackers to execute arbitrary code by loading malicious configuration files or shared libraries from the current working directory during ImageMagick execution. This occurs because empty paths in the environment variables cause ImageMagick to search for configuration files and shared libraries in the current working directory (GitHub Advisory).
The vulnerability is exploitable when an attacker can control files in the current working directory where ImageMagick is executed. Proof of concept exploits have been demonstrated through both MAGICK_CONFIGURE_PATH manipulation using a malicious delegates.xml file and LD_LIBRARY_PATH exploitation using a crafted shared library (GitHub Advisory).
The vulnerability has been fixed in ImageMagick version 7.11-36. The fix ensures there are no empty paths in the environment variables by modifying how the AppRun script handles path concatenation (GitHub Patch).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."