ImageMagick's policy bypass through path traversal allows reading restricted content despite secured policy
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ImageMagick | ImageMagick | 7.0.0 to before 7.1.2-15; before 6.9.13-40 | 7.1.2-15, 6.9.13-40 | Patch available | CNA |
| — | Magick.NET-Q16-AnyCPU (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-HDRI-AnyCPU (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-HDRI-arm64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-HDRI-x64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-HDRI-x86 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-OpenMP-arm64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-OpenMP-x64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-OpenMP-x86 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-arm64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-x64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q16-x86 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q8-AnyCPU (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q8-OpenMP-arm64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q8-OpenMP-x64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q8-arm64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q8-x64 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
| — | Magick.NET-Q8-x86 (NuGet) | before 14.10.3 | 14.10.3 | Patch available | GHSA-8jvj-p28h-9gm7 |
- ImageMagick VendorImageMagick Affected 7.0.0 to before 7.1.2-15; before 6.9.13-40 Fixed in 7.1.2-15, 6.9.13-40 Patch available CNA
- Magick.NET-Q16-AnyCPU (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-HDRI-AnyCPU (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-HDRI-arm64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-HDRI-x64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-HDRI-x86 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-OpenMP-arm64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-OpenMP-x64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-OpenMP-x86 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-arm64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-x64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q16-x86 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q8-AnyCPU (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q8-OpenMP-arm64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q8-OpenMP-x64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q8-arm64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q8-x64 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
- Magick.NET-Q8-x86 (NuGet) Vendor— Affected before 14.10.3 Fixed in 14.10.3 Patch available GHSA-8jvj-p28h-9gm7
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* | before 6.9.13-40; 7.0.0-0 to before 7.1.2-15 | Vulnerable | ImageMagick |
- cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* Versions before 6.9.13-40; 7.0.0-0 to before 7.1.2-15 Vulnerable ·ImageMagick
Remediation
- Fix · CNA ImageMagick (ImageMagick) Fixed in 7.1.2-15, 6.9.13-40
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-AnyCPU (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-HDRI-AnyCPU (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-HDRI-arm64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-HDRI-x64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-HDRI-x86 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-OpenMP-arm64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-OpenMP-x64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-OpenMP-x86 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-arm64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-x64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q16-x86 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q8-AnyCPU (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q8-OpenMP-arm64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q8-OpenMP-x64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q8-arm64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q8-x64 (NuGet) Fixed in 14.10.3 Advisory →
- Fix · GHSA-8jvj-p28h-9gm7 Magick.NET-Q8-x86 (NuGet) Fixed in 14.10.3 Advisory →
Red Hat 1 advisory
- RHSA-2026:5573 Released 2026-03-24 · Red Hat rating ImportantImageMagick security update
- Red Hat Enterprise Linux Server (v. 7 ELS) ImageMagick-6.9.10.68-13.el7_9, ImageMagick-6.9.10.68-13.el7_9.ppc, ImageMagick-c++-6.9.10.68-13.el7_9 +1
- Red Hat Enterprise Linux Server Optional (v. 7 ELS) ImageMagick-c++-6.9.10.68-13.el7_9, ImageMagick-c++-6.9.10.68-13.el7_9.ppc, ImageMagick-c++-devel-6.9.10.68-13.el7_9 +3
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux Server (v. 7 ELS) | Fixed | RHSA-2026:5573 |
| Red Hat Enterprise Linux Server Optional (v. 7 ELS) | Fixed | RHSA-2026:5573 |
Not affected: 2 products
- Red Hat Enterprise Linux Server (v. 7 ELS)
- Red Hat Enterprise Linux Server Optional (v. 7 ELS)
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25965
- 2026-10-03 Alias added: GHSA-8jvj-p28h-9gm7
References
More Imagemagick vulnerabilities
- TI-2016-03144 The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT… KEVCVSS 3.1HIGH 8.4
- TI-2023-16996 Improper input validation in ImageMagick CVSS 3.1CRITICAL 9.8
- TI-2016-03148 The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1… KEVCVSS 3.1MEDIUM 5.5
- TI-2016-03145 The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote… KEVCVSS 3.1MEDIUM 5.5
- TI-2025-35690 ImageMagick BlobStream Forward-Seek Under-Allocation CVSS 3.1CRITICAL 9.8
- TI-2025-33094 ImageMagick has Stack Buffer Overflow in image.c CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-25965 · CVE Program
- CVE-2026-25965 · NVD
- FIRST EPSS
- GHSA-8jvj-p28h-9gm7 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-25965 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences