Vulnerability · Published Feb 24, 2026 · Assigned by GitHub_M

CVE-2026-25965ImageMagick's policy bypass through path traversal allows reading restricted content despite secured policy

High 8.6

In plain English

A high-severity path traversal in ImageMagick from ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)0.7%top 45.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, ImageMagick’s path security policy is enforced on the raw filename string before the filesystem resolves it. As a result, a policy rule such as /etc/* can be bypassed by a path traversal. The OS resolves the traversal and opens the sensitive file, but the policy matcher only sees the unnormalized path and therefore allows the read. This enables local file disclosure (LFI) even when policy-secure.xml is applied. Actions to prevent reading from files have been taken in versions .7.1.2-15 and 6.9.13-40 But it make sure writing is also not possible the following should be added to one's policy. This will also be included in ImageMagick's more secure policies by default.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.22imagemagick7.1.2.15-r0ALPINE-CVE-2026-25965
Alpine:v3.23imagemagick7.1.2.15-r0ALPINE-CVE-2026-25965
Alpine:v3.24imagemagick7.1.2.15-r0ALPINE-CVE-2026-25965
Debian:12imagemagick8:6.9.11.60+dfsg-1.6+deb12u7DEBIAN-CVE-2026-25965
Debian:12imagemagick8:6.9.11.60+dfsg-1.6+deb12u7DSA-6159-1
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u6DSA-6158-1
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u6DEBIAN-CVE-2026-25965
Debian:14imagemagick8:7.1.2.15+dfsg1-1DEBIAN-CVE-2026-25965
NuGetmagick.net-q16-anycpu14.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-arm6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-hdri-anycpu14.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-hdri-arm6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-hdri-openmp-arm6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-hdri-openmp-x6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-hdri-x6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-hdri-x8614.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-openmp-arm6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-openmp-x6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-openmp-x8614.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-x6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q16-x8614.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q8-anycpu14.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q8-arm6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q8-openmp-arm6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q8-openmp-x6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q8-x6414.10.3GHSA-8jvj-p28h-9gm7
NuGetmagick.net-q8-x8614.10.3GHSA-8jvj-p28h-9gm7
Ubuntu:25.10imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1UBUNTU-CVE-2026-25965
Ubuntu:25.10imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1USN-8263-1

Affected products (as reported)

VendorProductVersions
ImageMagick ImageMagick >= 7.0.0, < 7.1.2-15< 6.9.13-40

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

References