Code injection in ImageMagick encoders via crafted filenames
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-94.
Summary
ImageMagick from 7.0.0 before 7.1.2-35 and before 6.9.13-60 is affected. Improper control of code generation (CWE-94) in the MAGICK, XBM, XPM and UIL encoders lets crafted filenames inject content. A local attacker with access to the output directory and control over the filename can inject extra headers or code into the generated image source output.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
ImageMagick before 7.1.2-35 contains a code injection vulnerability in the MAGICK, XBM, XPM and UIL encoders that allows local attackers to inject content via crafted filenames. Attackers with access to the output directory and control over the filename can inject additional headers or code into the generated image source output.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
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-35 | 7.1.2-35 | Patch available | CNA |
| ImageMagick | ImageMagick | before 6.9.13-60 | 6.9.13-60 | Patch available | CNA |
- ImageMagick VendorImageMagick Affected 7.0.0 to before 7.1.2-35 Fixed in 7.1.2-35 Patch available CNA
- ImageMagick VendorImageMagick Affected before 6.9.13-60 Fixed in 6.9.13-60 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* | before 6.9.13-60; 7.0.0-0 to before 7.1.2-35 | Vulnerable | ImageMagick |
- cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* Versions before 6.9.13-60; 7.0.0-0 to before 7.1.2-35 Vulnerable ·ImageMagick
Remediation
The fixed versions for ImageMagick are 7.1.2-35 and 6.9.13-60. Red Hat lists Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7 as affected with no fix available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA ImageMagick (ImageMagick) Fixed in 7.1.2-35
- Fix · CNA ImageMagick (ImageMagick) Fixed in 6.9.13-60
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
ImageMagick 7.1.2-35
20 records Highest priority Priority LOW 20 LOW
Other records, highest priority first
- TI-2026-93802 ImageMagick XMP profile policy bypass enables denial of servicePriority LOW 37
- TI-2026-93797 Policy bypass in ImageMagick ASE decoder allows denial of servicePriority LOW 37
- TI-2026-93795 ImageMagick allocates excessive memory for images with many profilesPriority LOW 37
- Release ·
ImageMagick 6.9.13-60
16 records Highest priority Priority LOW 16 LOW
Other records, highest priority first
- TI-2026-93802 ImageMagick XMP profile policy bypass enables denial of servicePriority LOW 37
- TI-2026-93795 ImageMagick allocates excessive memory for images with many profilesPriority LOW 37
- TI-2026-93791 Denial of service in ImageMagick raw pixel decodersPriority LOW 37
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-11-18 Threatist record created from CVE-2026-130663
- 2026-11-18 Alias added: GHSA-43mw-9x5m-jmx7
- 2026-11-21 CISA SSVC decision points changed
- 2026-11-25 Affected versions changed · Red Hat
- 2026-11-25 CVSS score added · Red Hat
References
More Imagemagick vulnerabilities
- TI-2016-03144 Command injection in ImageMagick coders allows remote code execution KEVCVSS 3.1HIGH 8.4
- TI-2023-16996 Improper input validation in ImageMagick CVSS 3.1CRITICAL 9.8
- TI-2016-03148 Server-side request forgery in ImageMagick HTTP and FTP coders KEVCVSS 3.1MEDIUM 5.5
- TI-2016-03145 Arbitrary file deletion in ImageMagick via EPHEMERAL coder 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-130663 · CVE Program
- CVE-2026-130663 · NVD
- FIRST EPSS
- GHSA-43mw-9x5m-jmx7 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-130663 · 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