Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUpload crafted MVG to image pipeline
-
DeliveryTrigger PostScript text/font rendering path
-
ExploitInject malicious font name into PostScript stream
-
ExecutionInfluence PostScript interpreter execution
-
ImpactLow-impact integrity/availability compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires that ImageMagick be built and invoked with a PostScript renderer (a Ghostscript delegate) and that the processed MVG actually reaches the RenderPostscript text-rendering path - the vulnerable code builds a PostScript stream from a draw_info->font value, so a crafted MVG must set a malicious font name containing PostScript-control characters. This precondition is reflected by AT:P in the vector. Limiting factors: if ImageMagick renders text via FreeType instead of the PostScript delegate, or if no Ghostscript delegate is configured, the path is not reached; no authentication (PR:N) or user interaction (UI:N) is required otherwise, and the patch's alphanumeric-plus-'-_.' font-name whitelist is what closes the injection. |
| Impact | This is a medium-severity issue (vendor CVSS 4.0 base 6.3) that should be treated as a moderate, conditional priority rather than an emergency. The positive signals are AV:N (network reachable) and PR:N/UI:N (no authentication or user interaction needed), which fit the common pattern of ImageMagick processing attacker-supplied images in web upload pipelines. However, several factors pull real-world risk down: the 4.0 vector carries AT:P (a specific attack requirement must be present - here, that a PostScript renderer/Ghostscript delegate is actually used for rendering), and impact is explicitly limited to VI:L and VA:L with VC:N (no confidentiality impact and only low integrity/availability impact), not full RCE. There is no EPSS score provided, the CVE is not listed in CISA KEV, and no public proof-of-concept is referenced, so exploitation status is 'no public exploit identified at time of analysis.' Note a signal tension worth verifying: the description frames this as 'code injection into the PostScript rendering path,' which colloquially suggests command execution, yet the vendor scored only low integrity/availability and no confidentiality - likely because modern Ghostscript sandboxing (-dSAFER) and the alphanumeric font-name whitelist in the patch constrain the achievable impact. Treat the low impact scores as vendor-assessed, and verify achievable impact against your specific Ghostscript/delegate configuration before downgrading. |
| Exploit ScenarioDerived | An attacker uploads a crafted MVG file to a web application or service that uses ImageMagick with a PostScript renderer (Ghostscript delegate) to rasterize or convert images. When ImageMagick decodes the MVG and renders text, a malicious font name is injected unsanitized into the generated PostScript stream, allowing the attacker to influence the PostScript rendering path. No public exploit code is referenced in the provided data, and exploitation only succeeds when the PostScript rendering path is actually invoked. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
Code injection through crafted MVG (Magick Vector Graphics) drawing files can reach ImageMagick's PostScript rendering path, where an attacker-controlled font name is embedded into a generated PostScript stream and handed to a Ghostscript delegate. The flaw affects ImageMagick 6.x before 6.9.13-57 and 7.x before 7.1.2-32 and is reachable by unauthenticated remote attackers (PR:N, UI:N) who can cause a malicious MVG file to be decoded, but only when ImageMagick is built with a PostScript renderer and the text-rendering call actually takes the RenderPostscript path rather than FreeType (attack requirements: present). Resulting impact is limited to integrity and availability of the conversion process (no confidentiality loss); there is no public exploit identified at time of analysis, and the vendor rates the issue medium at CVSS 4.0 base 6.3, so it is a moderate, conditional priority rather than an emergency.
RemediationAI
Vendor-released patch: upgrade to ImageMagick 6.9.13-57 or 7.1.2-32, which add the IsValidPostscriptFontname() whitelist; if building from source, apply commits 6cfb8d8c65bb0aba49903589b444f45ea074a226 (7.x) or c9e9c3a84945d698e8c4e849ec858dc914397181 (6.x) and see the advisory at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-233r-2p53-wqf5. Where immediate upgrading is not possible, the practical compensating controls target the precondition (AT:P): remove or disable the Ghostscript delegate so the RenderPostscript path is never reached, e.g. via a policy.xml entry such as <policy domain="delegate" rights="none" pattern="gs"/> or by uninstalling Ghostscript in the image-processing container - the trade-off is that PostScript/EPS/PDF rendering and conversion stop working. Similarly, blocking or sanitizing MVG input at the application boundary (rejecting .mvg uploads or font-name directives) removes the injection vector but breaks legitimate vector-drawing workflows, and forcing text rendering through FreeType avoids the vulnerable code at the cost of possible font-output differences. Regression testing after upgrading should focus on MVG text annotations and any PostScript delegate configuration.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ImageMagick's MVG decoder parses vector drawing commands, including text annotations whose font name is carried in draw_info->font. When text is rendered through the PostScript delegate, MagickCore/annotate.c (magick/annotate.c in the 6.x branch) builds a PostScript program string and passes the font name into it; the pre-patch guard only rejected a NULL/empty font name or one containing '/', leaving other PostScript metacharacters usable for injecting additional PostScript statements. This is an instance of CWE-74 (improper neutralization of special elements in output), i.e. an injection flaw rather than a memory-safety bug. The upstream fix introduces IsValidPostscriptFontname(), which whitelists only alphanumeric characters plus '-', '_' and '.', rejecting everything else before the PostScript stream is constructed. Reachability depends on configuration: the vulnerable code requires a Ghostscript delegate and a rendering path that goes through RenderPostscript; installations that render text via FreeType, or that have no PostScript delegate configured, do not hit it. The affected CPEs (cpe:2.3:a:imagemagick:imagemagick) cover both the 6.x and 7.x lines with wildcard versions.
Know when Imagemagick gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H reflects the required PostScript-delegate precondition (the 4.0 AT:P), with no confidentiality and only low integrity/availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a code injection vulnerability in the MVG decoder when a PostScript renderer is used. Attackers can supply a crafted MVG file that, when decoded, injects code into the PostScript rendering path.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
More in Imagemagick
View allThe (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.
The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi
ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc
Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv
The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi
The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit
The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b
The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to
The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d
EUVD-2026-97719
GHSA-cfh4-3vw6-vcfq
NVD
CVE.org
EPSS
Exploit-DB