CVE-2026-61858

ImageMagick before 7.1.2-26 Policy Bypass via APNG encoder

Published Jul 11, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ImageMagick before 7.1.2-26 contains a policy bypass that allows the APNG encoder to write files to any path without enforcing configured policy rules due to missing validation checks. This flaw is a form of improper access control, enabling a malicious actor to create or overwrite files in locations that should be protected, such as configuration files, system binaries, or web‑root directories. The weakness is classified as CWE-22 and CWE-59.

Affected Systems

ImageMagick released by ImageMagick. All pre‑7.1.2-26 versions are vulnerable; upgrading to 7.1.2-26 or later eliminates the flaw.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity, the EPSS score is less than 1% indicating a low probability of exploitation, and the vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker must cause ImageMagick to process an APNG file – this could occur locally or via an application that performs image conversion – so the attack vector is likely local or application‑level. Because the flaw permits arbitrary file writes, it could be used for privilege escalation or malicious code execution if critical files are overwritten.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑26 or later so that the APNG encoder validates policy restrictions properly.
  • Disable APNG processing by removing or restricting the PNG external delegate in the ImageMagick policy configuration.
  • Configure the policy file to explicitly deny write access to sensitive directories, ensuring any remaining write attempts via external delegates are blocked.

Generated by OpenCVE AI on August 1, 2026 at 11:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4696-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-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.
Title ImageMagick before 7.1.2-26 Policy Bypass via APNG encoder
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-59
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')

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Jul 10, 2026, 9:53 PM
Status
Analyzed
Published
Jul 11, 2026, 2:16 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Low
Public date
Jul 11, 2026, 1:01 PM