CVE-2026-25965: ImageMagick path traversal policy bypass in path security policy

CVE-2026-25965 · Severity: high · CVSS 8.6 · Published 2026-02-24

ImageMagick, a widely used tool for processing digital images, contains a security flaw that allows unauthorized access to sensitive files on a server. By using specially crafted file paths, an attacker can bypass security restrictions intended to block access to private system folders. This could lead to the exposure of confidential data or system configuration files, potentially compromising the entire server.

Technologies: Magick.NET-Q16-AnyCPU (NuGet), Magick.NET-Q16-arm64 (NuGet), Magick.NET-Q16-HDRI-AnyCPU (NuGet), Magick.NET-Q16-HDRI-arm64 (NuGet), Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet), Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet), Magick.NET-Q16-HDRI-x64 (NuGet), Magick.NET-Q16-HDRI-x86 (NuGet), Magick.NET-Q16-OpenMP-arm64 (NuGet), Magick.NET-Q16-OpenMP-x64 (NuGet), Magick.NET-Q16-OpenMP-x86 (NuGet), Magick.NET-Q16-x64 (NuGet), Magick.NET-Q16-x86 (NuGet), Magick.NET-Q8-AnyCPU (NuGet), Magick.NET-Q8-arm64 (NuGet), Magick.NET-Q8-OpenMP-arm64 (NuGet), Magick.NET-Q8-OpenMP-x64 (NuGet), Magick.NET-Q8-x64 (NuGet), Magick.NET-Q8-x86 (NuGet), Red Hat Enterprise Linux 6. Vendors: NuGet, Red Hat.

Quick answers

Is CVE-2026-25965 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-25965 being exploited in the wild.
How severe is CVE-2026-25965?
High severity, with a CVSS score of 8.6, published 24 February 2026.
Which products and versions are affected?
Magick.NET-Q16-AnyCPU (NuGet) ECOSYSTEM:introduced=0,fixed=14.10.3; Magick.NET-Q16-arm64 (NuGet) ECOSYSTEM:introduced=0,fixed=14.10.3; Magick.NET-Q16-HDRI-AnyCPU (NuGet) ECOSYSTEM:introduced=0,fixed=14.10.3; Magick.NET-Q16-HDRI-arm64 (NuGet) ECOSYSTEM:introduced=0,fixed=14.10.3; and 16 more.
Is there a fix for CVE-2026-25965?
Yes. Magick.NET-Q16-AnyCPU (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-AnyCPU (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-HDRI-x86 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-OpenMP-x86 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q16-x86 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-AnyCPU (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-x64 (NuGet): upgrade to 14.10.3 or later; Magick.NET-Q8-x86 (NuGet): upgrade to 14.10.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-25965 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-25965?
Check whether you run Magick.NET-Q16-AnyCPU (NuGet), Magick.NET-Q16-arm64 (NuGet), Magick.NET-Q16-HDRI-AnyCPU (NuGet) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Magick.NET-Q16-AnyCPU (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-AnyCPU --version 14.10.3
  • Magick.NET-Q16-arm64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-arm64 --version 14.10.3
  • Magick.NET-Q16-HDRI-AnyCPU (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.10.3
  • Magick.NET-Q16-HDRI-arm64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.10.3
  • Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.10.3
  • Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-HDRI-OpenMP-x64 --version 14.10.3
  • Magick.NET-Q16-HDRI-x64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.10.3
  • Magick.NET-Q16-HDRI-x86 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.10.3
  • Magick.NET-Q16-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.10.3
  • Magick.NET-Q16-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.10.3
  • Magick.NET-Q16-OpenMP-x86 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-OpenMP-x86 --version 14.10.3
  • Magick.NET-Q16-x64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-x64 --version 14.10.3
  • Magick.NET-Q16-x86 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q16-x86 --version 14.10.3
  • Magick.NET-Q8-AnyCPU (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q8-AnyCPU --version 14.10.3
  • Magick.NET-Q8-arm64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q8-arm64 --version 14.10.3
  • Magick.NET-Q8-OpenMP-arm64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.10.3
  • Magick.NET-Q8-OpenMP-x64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.10.3
  • Magick.NET-Q8-x64 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q8-x64 --version 14.10.3
  • Magick.NET-Q8-x86 (NuGet): upgrade to 14.10.3 or later
    dotnet add package Magick.NET-Q8-x86 --version 14.10.3

Technical details

A path traversal vulnerability exists in ImageMagick because its path security policy is enforced on raw filename strings before filesystem normalization. An attacker can bypass policy rules (e.g., restrictions on /etc/*) by using unnormalized paths containing traversal sequences (../). While the policy matcher sees the unnormalized string and permits the action, the underlying operating system resolves the path to a restricted file and opens it. This results in Local File Disclosure (LFI). The issue is fixed in versions 7.1.2-15 and 6.9.13-40 by improving path validation, and users are advised to update their policy.xml to explicitly block traversal patterns.

Affected products

  • ImageMagick ImageMagick < 7.1.2-15, < 6.9.13-40
  • Red Hat Red Hat Enterprise Linux Server (v. 7 ELS) 7
  • Red Hat Red Hat Enterprise Linux 6 6

Identifiers

  • CVE-2026-25965
  • GHSA-8jvj-p28h-9gm7

Timeline

  • 2026-02-23: advisory: GitHub Security Advisory published
  • 2026-02-24: disclosed: NVD publication date
  • 2026-03-24: patched: Red Hat released security updates (RHSA-2026:5573)

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.