Privilege escalation in ImageMagick



| Updated: 2025-01-05
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-41817
CWE-ID CWE-427
Exploitation vector Local
Public exploit N/A
Vulnerable software
ImageMagick
Client/Desktop applications / Multimedia software

Vendor ImageMagick.org

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Insecure library loading

EUVDB-ID: #VU94793

Risk: Low

CVSSv4.0: 5.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2024-41817

CWE-ID: CWE-427 - Uncontrolled Search Path Element

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to the application loads shared libraries and configuration files in an insecure manner when setting MAGICK_CONFIGURE_PATH and LD_LIBRARY_PATH environment variables while executing. A local user can place a malicious file into the current working directory and trick the victim into executing ImageMagic, resulting in code execution.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

ImageMagick: 7.0.0-0 - 7.6.0-0

CPE2.3 External links

https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8rxc-922v-phg8


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###