Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUpload crafted PostScript file to ImageMagick service
-
ExploitTrigger off-by-one ICC-profile buffer allocation
-
ExecutionRead uninitialized trailing byte
-
ImpactLeak single byte of process memory
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Variable initialization
|
| Exploitation Conditions | Exploitation requires that the target application decode an attacker-supplied PostScript (PS) file through ImageMagick's internal PS coder and that the one leaked byte be observable in returned output (e.g., the generated image's ICC profile or converted result). The flaw is in the ICC-profile handling within ReadPSInfo in coders/ps.c, so the crafted file must reach the PostScript decode path; deployments that disable the PS/PostScript coder via policy.xml, or that never process PostScript input, are not exposed. Limiting factors: the impact is capped at a SINGLE uninitialized byte per request (no multi-byte or chosen-address read), there is no integrity or availability effect, and the attacker must have a channel that reflects the decoder output back to them - reducing real-world value even though no authentication or user interaction is required. |
| Impact | This is a low-to-moderate priority issue despite its 6.9 CVSS 4.0 score. The vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N) correctly reflects a remotely reachable, unauthenticated, low-complexity trigger with only LOW confidentiality impact and no integrity or availability impact - consistent with the description, which discloses exactly ONE uninitialized byte of process memory per crafted file (CWE-908). The high-looking score is driven by the easy network-reachable trigger, not by impact severity: a single leaked byte is of minimal intelligence value on its own and is not directly code-execution or credential-disclosure. No EPSS score, KEV listing, or public exploit was provided in the input; it is not on CISA KEV and no public exploit identified at time of analysis, so there is no evidence of active or at-scale exploitation. The 'source code evidence' in the input is the vendor PATCH diff (off-by-one in SetStringInfoLength, allocating i+1 instead of i bytes), not an exploit - do not conflate patch availability with POC availability. Net: patch promptly during normal maintenance, but this does not warrant emergency response. |
| Exploit ScenarioDerived | An attacker submits a crafted PostScript file to a web application or pipeline that uses ImageMagick to decode or convert uploaded images. The PostScript decoder allocates an ICC-profile buffer one byte longer than the decoded data, and that trailing uninitialized byte of heap memory is returned embedded in the output, leaking a single byte of process memory contents to the attacker. No public exploit code was provided in the input, and the vendor commit referenced is the fix, not a weaponized POC. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
ImageMagick releases before 6.9.13-57 and 7.x before 7.1.2-32 expose a single uninitialized byte of process memory through the internal PostScript (PS) decoder, allowing unauthenticated remote attackers who can submit a crafted PS file to read one byte of stale heap contents via the decoded ICC profile. The root cause is an off-by-one in ReadPSInfo in coders/ps.c, where the ICC profile string length is set to the decoded length plus one, so the buffer is one byte longer than the data written into it. Exploitation requires that the application actually routes attacker-supplied PostScript into ImageMagick and that the resulting output (for example the generated image or its ICC profile) is returned to the attacker; no public exploit code or confirmed active exploitation was identified at time of analysis, and the practical impact is capped at a single byte per request with no integrity or availability effect, making this a low-to-moderate priority issue despite the 6.9 CVSS 4.0 base score.
RemediationAI
Vendor-released patch: upgrade to ImageMagick 6.9.13-57 (legacy 6.x line) or 7.1.2-32 (7.x line), which are the first versions containing the corrected SetStringInfoLength computation; the corresponding fixes are commit a32215ba7a193f2bc896ba6ed4be4013cc06e22b for ImageMagick6 and commit 5a5c2e51948fcc5d85b8d832938e2c1b4db4a699 for ImageMagick 7, with the advisory at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5j8x-vq8c-vrp9. If immediate upgrade is not possible, the most effective compensating control is to disable the PostScript coder entirely using a policy.xml entry that sets the PS, EPS, and related delegate coders to 'none' - the trade-off is that all PostScript/EPS image processing stops working, which is acceptable for deployments that never legitimately consume PS input but breaks print-preview or document-pipeline features. Do not rely on disabling only the Ghostscript delegate: the defect is in ImageMagick's own PS metadata parser, so the file must be blocked before it reaches the coder. Restricting who can submit PostScript files to the affected service (moving the conversion behind an authenticated endpoint, or quarantining PS input until it has been converted by a patched instance) reduces exposure without removing functionality, though it does not eliminate the bug for legitimate untrusted input. Given the single-byte, read-only nature of the leak and the requirement that decoder output be observable, these mitigations can be prioritised alongside, rather than ahead of, higher-impact fixes in the same deployment.
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
The vulnerability is a CWE-908 (use of uninitialized resource) defect in ImageMagick's PostScript coder. When parsing PostScript input, ReadPSInfo in coders/ps.c extracts embedded metadata, including an ICC color profile, by scanning the input and then calling SetStringInfoLength(ps_info->icc_profile, (size_t) i+1). The '+1' over-allocates the StringInfo buffer by one byte relative to the number of bytes actually decoded into it, so the trailing byte is never initialized and retains whatever heap data previously occupied that memory. The upstream fixes (commit 5a5c2e51948fcc5d85b8d832938e2c1b4db4a699 on the ImageMagick 7 branch and commit a32215ba7a193f2bc896ba6ed4be4013cc06e22b on the ImageMagick6 branch) change that length assignment from i+1 to i, eliminating the uninitialized tail byte; the 7.x commit also reflows an unrelated AcquireProfileStringInfo call. Because the disclosure surface is the ICC profile/metadata path rather than the pixel decode path, the attacker must reach the PostScript decoder (which in typical builds delegates rendering to Ghostscript but parses PS metadata natively) and must have a channel that reflects the resulting profile or converted output back to them. The affected CPEs are the two ImageMagick product streams, cpe:2.3:a:imagemagick:imagemagick, covering the legacy 6.x line and the modern 7.x line.
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:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable crafted-file trigger is unauthenticated and low-complexity (AV:N/AC:L/PR:N/UI:N); only a single uninitialized byte leaks, so C:L and I/A:N.
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 an information disclosure vulnerability in the PostScript decoder, which allocates a buffer one byte longer than the data it decoded. Attackers can supply a crafted PostScript file to expose a single uninitialized byte of memory contents.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-97717
GHSA-m3mr-78pc-g3jj
NVD
CVE.org
EPSS
Exploit-DB