CVE-2026-56377

ImageMagick - Policy Bypass via Incorrect Path Validation

Published Jun 30, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-24 contains an incorrect policy check that allows attackers to create or truncate files disallowed by security policies. Remote attackers can bypass path policy restrictions in sandboxed conversion services to write arbitrary files outside intended boundaries.

Analysis

AI-generated

Technical impact

ImageMagick prior to version 7.1.2-24 implements a policy check that is insufficiently validated, enabling attackers to create or truncate files that should be protected by security policies. This flaw permits the writing of arbitrary files outside the intended directory boundaries, potentially allowing persistent access, configuration manipulation, or installation of malicious payloads. The weakness is a classic path traversal error (CWE‑22), which undermines confidentiality, integrity, and availability of the affected system.

Affected Systems

The vulnerability affects all installations of the ImageMagick image processing library with versions earlier than 7.1.2-24. Any system running this component, regardless of operating environment, is susceptible when the library is exposed to external input via sandboxed conversion services.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate risk, while the EPSS score is not available, suggesting no publicly reported exploitation prevalence. The flaw is listed as not present in the CISA KEV catalog. Attackers can exploit the issue remotely through image conversion services that accept user-supplied files; the exploitation requires the ability to submit files to the vulnerable image conversion process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2-24 or later, which contains the corrected policy enforcement.
  • If an upgrade is delayed, tighten the policy configuration to disallow file creation or truncation outside of the specified safe directories, and disable the default 'path' policy where possible.
  • Enforce stricter file system permissions or use a read‑only or chrooted filesystem for the image conversion service so that even if a path traversal occurs, the attacker cannot write to critical files.

Generated by OpenCVE AI on June 30, 2026 at 23:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4680-1 imagemagick security update
Debian DSA Debian DSA DSA-6383-1 imagemagick security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ImageMagick before 7.1.2-24 contains an incorrect policy check that allows attackers to create or truncate files disallowed by security policies. Remote attackers can bypass path policy restrictions in sandboxed conversion services to write arbitrary files outside intended boundaries.
Title ImageMagick - Policy Bypass via Incorrect Path Validation
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-22
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jun 21, 2026, 2:05 AM
Status
Analyzed
Published
Jun 30, 2026, 11:17 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Low
Public date
Jun 30, 2026, 10:08 PM