CVE-2026-25965
HIGH 7.5CVSS 3.1ImageMagick: Policy bypass through path traversal allows reading restricted content despite secured policy
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.
- Published
- 24 Feb 2026
- Last modified
- 15 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-8jvj-p28h-9gm7
- Sources
- NVDJSONOSV GHSA-8jvj-p28h-9gm7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
< 6.9.13-40 | 6.9.13-40 |
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
>= 7.0.0-0, < 7.1.2-15 | 7.1.2-15 |
| OSV | NuGet | Magick.NET-Q16-AnyCPU | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-AnyCPU | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-x86 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-x86 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-x86 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-AnyCPU | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-x86 | < 14.10.3 | 14.10.3 |
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8jvj-p28h-9gm7 · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:5573
- https://access.redhat.com/security/cve/CVE-2026-25965
- https://bugzilla.redhat.com/show_bug.cgi?id=2442118
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25965.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-25965 · ADVISORY
- https://github.com/ImageMagick/ImageMagick · PACKAGE
- https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 24 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Feb 2026)