Cloudanix VulnDB

CVE-2026-61858

Low · 3.3

CVSS

3.3

EPSS

0.2%

Published

Jul 11, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in an image-processing tool can let someone who can run or trigger conversions save files in places that were supposed to be blocked.

Chainable
Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Data Tampering
Component
Application
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

ImageMagick versions before 7.1.2-26 contain an authorization/policy bypass in the APNG encoder path and its use of external delegates. A local, low-privileged attacker who can invoke ImageMagick or influence an ImageMagick conversion workflow can bypass configured policy restrictions intended to prevent writes to sensitive or disallowed filesystem paths. The direct impact is limited integrity loss: unauthorized file creation or overwrite in locations that policy should have blocked, subject to the privileges of the ImageMagick process and filesystem permissions.

Why it matters to the business

Systems that use ImageMagick to process images may not reliably enforce file-write restrictions, which can allow an attacker or malicious job to place or overwrite files where the organization expected writes to be prohibited. The practical risk is highest in automated media-processing pipelines, shared hosting environments, CI/build systems, and services where ImageMagick runs with more filesystem access than the submitting user should have. This issue is not currently listed in CISA KEV, has low EPSS, and has no reported exploit maturity in the provided data, but it should still be remediated because ImageMagick is widely embedded in application and content-processing stacks.

How an attack unfolds

An attacker first obtains the ability to run ImageMagick locally or submit input to a workflow that causes ImageMagick to perform an APNG encode operation. They then craft the conversion request or input/output parameters so the APNG encoder and delegate handling path attempts to write to a path that should be blocked by ImageMagick policy configuration. Because the vulnerable versions lack required validation checks, the configured policy restrictions can be bypassed and the ImageMagick process writes a file to a disallowed location, assuming the operating system permissions of that process allow it. Follow-on impact depends on where the file is written: it may enable tampering with application-controlled content, planting files used by later jobs, corrupting configuration or cache files, or preparing a path for further local privilege escalation if combined with other weaknesses.

How to fix it

Upgrade ImageMagick to version 7.1.2-26 or later wherever ImageMagick is installed directly, embedded in containers, bundled in application images, or provided by operating-system packages. If vendor packages are used, apply the distribution security update that backports the fix, even if the package version string differs from upstream. As compensating controls, run ImageMagick with the least possible filesystem privileges, isolate image processing in containers or sandboxes, restrict writable directories at the operating-system level, avoid running ImageMagick as a privileged service account, and review policy.xml to ensure coders, delegates, and path restrictions are as strict as possible. Treat policy.xml as a defense-in-depth control rather than the only enforcement boundary until the upgrade is complete.

How to confirm the fix worked

Confirm the installed ImageMagick version with commands such as `magick -version`, `convert -version`, or package-manager queries, and verify it is 7.1.2-26 or later, or that the OS vendor has documented a backported fix. Check container base images, build images, serverless layers, and application bundles because ImageMagick is often included indirectly. Validate that image-processing services run under restricted service accounts and cannot write outside intended working directories at the operating-system permission layer. Where safe, test policy enforcement in a non-production environment by attempting APNG conversions that target disallowed paths and confirming the operation is blocked and no file is created.

Typical attack path

  1. Identify a system, application, or batch pipeline that uses ImageMagick before 7.1.2-26.
  2. Gain local execution capability or access to a feature that triggers ImageMagick image conversion.
  3. Force or submit an APNG encoding operation that uses ImageMagick’s APNG encoder and delegate handling.
  4. Specify or influence an output path that ImageMagick policy should normally prohibit.
  5. Exploit the missing validation checks to bypass policy enforcement and write a file to the disallowed path.
  6. Use the written file for tampering, persistence within an application workflow, staging, or as part of a chained attack.

How to detect it

To assess possible prior exploitation, review application, job-runner, CI, web upload, and system audit logs for ImageMagick invocations that performed APNG encoding and wrote outputs outside expected temporary or media directories. Useful sources include process execution telemetry, shell history for service accounts, EDR process trees, Linux auditd records, container runtime logs, application conversion job logs, and filesystem integrity monitoring. Look for `magick` or `convert` processes with APNG-related inputs or outputs, unusual output paths, path traversal patterns, or writes to configuration, startup, cache, web root, cron, service, or application-controlled directories. Correlate suspicious file creation or modification events with ImageMagick process execution under service accounts. Because no public exploit maturity or named threat actors are provided, detection should focus on behavioral evidence of policy-bypass file writes rather than fixed signatures.

What your security team should do

  • Inventory all ImageMagick installations across servers, containers, CI images, desktop tooling, and application dependencies.
  • Prioritize upgrades on internet-facing upload/conversion services, shared processing platforms, and systems where ImageMagick runs with broad filesystem access.
  • Upgrade to ImageMagick 7.1.2-26 or later, or apply the relevant vendor security update with a backported fix.
  • Harden runtime permissions so ImageMagick can write only to dedicated temporary and output directories enforced by the operating system, not only by ImageMagick policy.
  • Review ImageMagick policy.xml and delegate configuration for unnecessary coders, delegates, and write permissions; disable APNG or external delegates if not required.
  • Search recent job logs, application logs, and filesystem audit data for unexpected APNG conversions or writes outside approved image-processing directories.
  • Add regression tests to image-processing pipelines to ensure disallowed output paths remain blocked after future package or configuration changes.

The record

ImageMagick before 7.1.2-26 contains a policy bypass vulnerability in the APNG encoder and external delegates due to missing validation checks. Attackers can write files to disallowed paths by bypassing configured policy restrictions through the APNG encoding process.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities