CVE-2026-49219: ImageMagick Policy Bypass via Symlink Path Traversal
ImageMagick, widely used for image processing and manipulation, contains a vulnerability that allows a local attacker with login privileges to bypass security policies and read files that should be restricted. The flaw stems from improper handling of filenames, specifically when symlinks are involved. An attacker could exploit this to circumvent the policy restrictions ImageMagick enforces. This is not a remote vulnerability—it requires local system access and user-level permissions.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Weaknesses (CWE)
- CWE-200, CWE-22, CWE-78, CWE-863
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-10 / 2026-06-17
NVD description (verbatim)
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-48 and 7.1.2-24, an incorrect parsing of the filename can result in a policy bypass and read files disallowed by a security policy using a symlink. This issue has been patched in versions 6.9.13-48 and 7.1.2-24.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-49219 involves a filename parsing defect in ImageMagick versions prior to 6.9.13-48 (legacy branch) and 7.1.2-24 (current branch). The vulnerability allows policy bypass through symlink abuse. ImageMagick's security policies can restrict access to certain files or operations; however, when processing a specially crafted filename containing a symlink, the parser fails to properly validate the path, allowing read access to policy-protected files. The issue affects the confidentiality of restricted data but does not enable modification or denial of service. The vulnerability maps to CWE-22 (Path Traversal), CWE-200 (Information Exposure), CWE-78 (OS Command Injection factors), and CWE-863 (Incorrect Authorization), indicating multiple dimensions of the control failure.
Business impact
Organizations relying on ImageMagick's security policies to prevent unauthorized file access—such as multi-tenant SaaS platforms, content management systems, or image processing pipelines with segregated data—face a risk of information disclosure. A local user account could read files outside their intended scope, potentially accessing configuration files, API keys, database credentials, or other sensitive data stored on the same system. In environments where ImageMagick runs as a service or daemon, this could allow privilege escalation to escalate from a standard user to accessing service-level secrets.
Affected systems
ImageMagick versions 6.9.13-47 and earlier in the 6.9 line, and versions 7.1.2-23 and earlier in the 7.1+ line are affected. The vulnerability requires local filesystem access, so it primarily impacts systems where untrusted users have login accounts or shell access, or where ImageMagick processes untrusted input on behalf of local users. Both the legacy 6.9 series and the modern 7.1+ series require patching; upgrading only one branch while running the other leaves exposure.
Exploitability
Exploitation requires local access (AV:L) and user-level privileges (PR:L); it is not remotely exploitable. However, complexity is low (AC:L), meaning the attack is straightforward once access is obtained—no special conditions or race conditions are needed. An attacker with a standard user account can craft a filename containing a symlink and pass it to ImageMagick to read restricted files. This makes the vulnerability practical for privilege escalation or lateral movement within a compromised system. No user interaction is required. The vulnerability is not currently tracked in CISA's Known Exploited Vulnerabilities (KEV) catalog, suggesting active in-the-wild exploitation has not been widespread at the time of publication.
Remediation
Upgrade ImageMagick to version 6.9.13-48 or later in the legacy branch, or to version 7.1.2-24 or later in the current branch. Organizations should prioritize environments where untrusted users have local access or where ImageMagick processes user-supplied filenames. After patching, verify that security policies are still in effect and test any custom policy configurations to ensure they function as expected post-update.
Patch guidance
For legacy deployments using ImageMagick 6.9.x, upgrade to 6.9.13-48 or later. For current deployments using ImageMagick 7.1.x, upgrade to 7.1.2-24 or later. Verify the patch version in your package repository or via the vendor advisory before deploying. Test the patched version in a non-production environment to confirm compatibility with your image processing workflows. If you have compiled ImageMagick from source, rebuild using the patched source code release. After upgrade, review your security policy configuration files to ensure they are still correctly loaded and enforced.
Detection guidance
Monitor for suspicious filename patterns containing symbolic links or path traversal sequences (e.g., ../, ..\, or references to /etc, /proc, /home outside the expected scope) passed to ImageMagick processes. Log file access attempts from ImageMagick that deviate from normal policy-compliant reads. In a SIEM, correlate ImageMagick process execution with reads of sensitive files (configuration, credential files). Inspect process arguments and environment variables to detect potential policy bypass attempts. Establish baselines of normal ImageMagick filename input and alert on anomalies. Review audit logs on systems running ImageMagick as a service to detect unauthorized file reads by the service principal.
Why prioritize this
Although the CVSS score is moderate (5.5), the vulnerability enables information disclosure of sensitive data by local users and is applicable to multi-tenant or regulated environments. Organizations that enforce strict access controls via ImageMagick policies should prioritize patching to close the bypass. The low barrier to exploitation (AC:L, no user interaction) and the broad deployment of ImageMagick in web applications and content platforms elevate the practical risk. Patch relatively soon in your cycle, but remote vulnerabilities and critical availability issues should take higher priority in your queue.
Risk score, explained
The CVSS 3.1 score of 5.5 (MEDIUM) reflects a local-only attack vector (AV:L), user-level privileges (PR:L), and an impact limited to confidentiality (C:H, I:N, A:N). The vulnerability does not break integrity or availability, and it requires pre-existing local access, preventing remote exploitation. However, the high confidentiality impact and straightforward exploitation path justify prioritization in defense-in-depth strategies, especially in multi-user or containerized environments where local account compromise is plausible.
Frequently asked questions
Can this vulnerability be exploited remotely?
No. CVE-2026-49219 requires local filesystem access and user-level privileges. It cannot be exploited by a remote attacker over the network. However, in cloud or containerized environments, a compromised application container or a rogue internal user could exploit it locally.
Does this vulnerability allow an attacker to execute code or modify files?
No. The vulnerability is limited to reading files that are normally restricted by ImageMagick's security policy. It does not enable code execution, file modification, or denial of service. The impact is confidentiality only.
Which ImageMagick versions are affected?
ImageMagick versions 6.9.13-47 and earlier (6.9.x branch), and versions 7.1.2-23 and earlier (7.1.x branch) are affected. Both branches must be patched independently. Verify your installed version and upgrade to 6.9.13-48 or 7.1.2-24 or later.
What should I do if I cannot patch immediately?
Implement strong access controls to limit local user accounts on systems running ImageMagick. Run ImageMagick in isolated containers or sandboxes if possible. Review and tighten ImageMagick security policies to further restrict file access. Monitor process logs and file access attempts for anomalies. Plan patching within your normal cycle as soon as feasible.
This analysis is provided for informational purposes and represents the state of the vulnerability as of the publication date. Patch version numbers and affected software versions are sourced from the official vendor advisory and CVE record. Organizations should verify all technical details against the authoritative ImageMagick security advisory before deployment. This vulnerability is not currently listed in CISA's KEV catalog; threat landscape can evolve. SEC.co does not provide warranty regarding the completeness or accuracy of this guidance. Always test patches in a non-production environment before production deployment. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Affected vendors
Related vulnerabilities
- CVE-2026-49397MEDIUMNezha Monitoring Private Service Enumeration Vulnerability
- CVE-2025-69755HIGHNeterbit NW-431F Router RCE and Data Exposure Vulnerability
- CVE-2026-47165MEDIUMImageMagick Distributed Pixel Cache Authentication Bypass
- CVE-2018-25393MEDIUMNavigate CMS 2.8.5 Path Traversal Vulnerability (CVSS 6.5)
- CVE-2018-25421MEDIUMOpen STA Manager 2.3 Path Traversal File Download Vulnerability
- CVE-2019-25734MEDIUMContact Form by WD CSRF & Local File Inclusion Vulnerability
- CVE-2019-25740MEDIUMJoomla com_jsjobs Arbitrary File Deletion Vulnerability
- CVE-2022-50953MEDIUMWordPress admin-word-count-column Plugin Local File Read Vulnerability