Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Magick.NET-Q16-HDRI-arm64
  4. ›
  5. CVE-2026-25965

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

February 24, 2026

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. But it make sure writing is also not possible the following should be added to your policy:

<policy domain="path" rights="none" pattern="*../*"/>

And this will also be included in the project’s more secure policies by default.

References

  • github.com/ImageMagick/ImageMagick
  • github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8jvj-p28h-9gm7
  • github.com/advisories/GHSA-8jvj-p28h-9gm7
  • github.com/dlemstra/Magick.NET/releases/tag/14.10.3
  • nvd.nist.gov/vuln/detail/CVE-2026-25965

Code Behaviors & Features

Detect and mitigate CVE-2026-25965 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 14.10.3

Fixed versions

  • 14.10.3

Solution

Upgrade to version 14.10.3 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

nuget/Magick.NET-Q16-HDRI-arm64/CVE-2026-25965.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:19:12 +0000.