ImageMagick has Memory Leak in magick stream
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-125 and the CVSS impact.
Summary
ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0 and 6.9.13-26, in ImageMagick's `magick stream` command, specifying multiple consecutive `%d` format specifiers in a filename template causes a memory leak. Versions 7.1.2-0 and 6.9.13-26 fix the issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- 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 | before 7.1.2-0; before 6.9.13-26 | 7.1.2-0, 6.9.13-26 | Patch available | CNA |
| — | Magick.NET-Q16-AnyCPU (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-HDRI-AnyCPU (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-HDRI-arm64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-HDRI-x64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-HDRI-x86 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-OpenMP-arm64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-OpenMP-x64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-arm64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-x64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q16-x86 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q8-AnyCPU (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q8-OpenMP-arm64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q8-OpenMP-x64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q8-arm64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q8-x64 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
| — | Magick.NET-Q8-x86 (NuGet) | before 14.7.0 | 14.7.0 | Patch available | GHSA-cfh4-9f7v-fhrc |
- ImageMagick VendorImageMagick Affected before 7.1.2-0; before 6.9.13-26 Fixed in 7.1.2-0, 6.9.13-26 Patch available CNA
- Magick.NET-Q16-AnyCPU (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-HDRI-AnyCPU (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-HDRI-arm64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-HDRI-x64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-HDRI-x86 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-OpenMP-arm64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-OpenMP-x64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-arm64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-x64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q16-x86 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q8-AnyCPU (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q8-OpenMP-arm64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q8-OpenMP-x64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q8-arm64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q8-x64 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
- Magick.NET-Q8-x86 (NuGet) Vendor— Affected before 14.7.0 Fixed in 14.7.0 Patch available GHSA-cfh4-9f7v-fhrc
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* | before 6.9.13-26; 7.0.0-0 to before 7.1.2-0 | Vulnerable | ImageMagick |
- cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* Versions before 6.9.13-26; 7.0.0-0 to before 7.1.2-0 Vulnerable ·ImageMagick
Remediation
- Fix · CNA ImageMagick (ImageMagick) Fixed in 7.1.2-0, 6.9.13-26
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-AnyCPU (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-HDRI-AnyCPU (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-HDRI-arm64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-HDRI-x64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-HDRI-x86 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-OpenMP-arm64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-OpenMP-x64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-arm64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-x64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q16-x86 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q8-AnyCPU (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q8-OpenMP-arm64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q8-OpenMP-x64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q8-arm64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q8-x64 (NuGet) Fixed in 14.7.0 Advisory →
- Fix · GHSA-cfh4-9f7v-fhrc Magick.NET-Q8-x86 (NuGet) Fixed in 14.7.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. 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 7 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-53019
- 2026-10-03 Alias added: GHSA-cfh4-9f7v-fhrc
References
Advisory 2
Other 5
- https://github.com/ImageMagick/ImageMagick/commit/fc3ab0812edef903bbb2473c0ee652ddfd04fe5c
- https://github.com/ImageMagick/ImageMagick6/commit/d49460522669232159c2269fa64f73ed30555c1b
- https://github.com/ImageMagick/ImageMagick
- https://github.com/dlemstra/Magick.NET/releases/tag/14.7.0
- https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html
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-2025-53019 · CVE Program
- CVE-2025-53019 · NVD
- FIRST EPSS
- GHSA-cfh4-9f7v-fhrc · GitHub Advisory Database · CC BY 4.0
- CVE-2025-53019 · 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