CVE-2026-47166: ImageMagick Distributed Cache Heap Over-Read (CVSS 5.7)
ImageMagick, a widely-used image editing tool, contains a memory safety flaw in its distributed caching service. An attacker with local access who can connect to the magick -distribute-cache service can trigger the server to read beyond allocated heap memory, potentially exposing sensitive data or causing a denial of service. The vulnerability affects versions before 6.9.13-48 (legacy branch) and 7.1.2-23 (current branch).
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.7 MEDIUM · CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H
- Weaknesses (CWE)
- CWE-125, CWE-287
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-10 / 2026-06-17
NVD description (verbatim)
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-48 and 7.1.2-23, an attacker who can connect to a magick -distribute-cache service can cause a heap buffer over-read in the server process. This issue has been patched in versions 6.9.13-48 and 7.1.2-23.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-47166 is a heap buffer over-read vulnerability in ImageMagick's distributed cache server component. The flaw exists in how the magick -distribute-cache service processes incoming connections and image data. An authenticated local attacker can craft a malicious request that causes the server process to read memory beyond the bounds of an allocated heap buffer. This is classified as a CWE-125 (Out-of-bounds Read) combined with authentication weaknesses (CWE-287), resulting in potential information disclosure or service disruption. The CVSS 3.1 score of 5.7 (MEDIUM) reflects the requirement for local access and high privilege level, though the potential for confidentiality breach and availability impact justifies attention.
Business impact
Organizations running ImageMagick with the distributed cache feature enabled face localized risk. The vulnerability requires an attacker to already have local system access and elevated privileges, limiting exposure in typical cloud or SaaS deployments. However, in environments where image processing is delegated to shared systems (internal design services, batch processing clusters), a malicious insider or compromised local account could leak sensitive image data or trigger service interruptions. The primary business risk is data confidentiality: unintended exposure of images or embedded metadata during heap over-read operations.
Affected systems
ImageMagick versions 6.9.13-47 and earlier (6.x branch) and versions 7.1.2-22 and earlier (7.x branch) are vulnerable when the -distribute-cache option is enabled. The distributed cache service is an optional feature used for performance optimization in multi-process image workflows. Systems using ImageMagick in standalone mode (without -distribute-cache) are not affected. End users should verify their deployment: check running ImageMagick processes for the -distribute-cache flag and review version numbers against the patched releases.
Exploitability
Exploitation requires local system access and the ability to connect to a listening magick -distribute-cache service. The CVSS vector (AV:L/AC:H/PR:H) indicates local-only attack surface with high complexity and high privilege requirements. This is not a remote code execution vulnerability and cannot be exploited over the network from untrusted sources. Practical risk exists primarily in multi-tenant or shared computing environments where different users or processes can interact with a common ImageMagick cache daemon. The vulnerability is not listed on CISA's Known Exploited Vulnerabilities catalog, indicating no evidence of active exploitation in the wild as of the publication date.
Remediation
Upgrade ImageMagick to version 6.9.13-48 or later (6.x series) or 7.1.2-23 or later (7.x series). Organizations unable to patch immediately should consider disabling the -distribute-cache feature if not essential to operations, or restrict local system access to only trusted users. Verify after patching that the correct version is running and that no stale processes are still using older binaries.
Patch guidance
Update ImageMagick through your package manager or build from source. For apt/yum-based distributions, verify the available version in your configured repositories matches or exceeds 6.9.13-48 (6.x) or 7.1.2-23 (7.x). Users on legacy 6.x branches should plan migration to the 7.x line for continued support. After upgrade, restart any applications or services that embed or invoke ImageMagick, and confirm via `convert -version` or `magick -version` that the new version is in effect. Test image processing workflows to ensure compatibility.
Detection guidance
Monitor for unexpected connections to ImageMagick cache ports (typically port 6666 by default). Check process listings for running magick -distribute-cache daemons and note their version. If you suspect exploitation, examine system logs for segmentation faults or memory corruption errors in ImageMagick processes. Memory analysis tools (valgrind, AddressSanitizer) can detect heap over-read patterns if you can reproduce a suspected attack. Network segmentation to restrict cache daemon access to trusted processes is a practical interim control.
Why prioritize this
This is a MEDIUM-severity vulnerability suitable for standard patching cycles rather than emergency response. The local-only attack surface and high privilege requirements significantly reduce real-world exploitability. However, organizations operating image processing clusters or multi-tenant design platforms should prioritize this patch within 30–60 days, as the confidentiality impact (heap memory disclosure) could expose sensitive user images or metadata. No active exploitation has been reported.
Risk score, explained
The CVSS 3.1 score of 5.7 reflects a balance of factors: confidentiality impact (HIGH) and availability impact (HIGH) are offset by the stringent attack requirements (local access, high privileges, high complexity). The score appropriately captures that while the technical impact of a heap over-read is serious, the realistic attack surface in most organizations is limited. Organizations with strict local access controls will see lower practical risk; those with shared or less-controlled systems should weight this higher in their prioritization.
Frequently asked questions
Do I need to patch if I don't use the -distribute-cache feature?
No. This vulnerability only affects ImageMagick installations where the magick -distribute-cache service is explicitly enabled and running. If your deployment uses ImageMagick in standard mode (via convert, mogrify, or library calls without distributed caching), you are not exposed. Check your process listings and startup configurations to confirm.
Can this vulnerability be exploited remotely over the network?
No. The attack vector is strictly local (AV:L in the CVSS vector). An attacker must have direct access to the system and the ability to connect to the cache daemon socket. Remote attackers cannot trigger this flaw over the network.
What exactly could an attacker see or do with a heap over-read?
A heap buffer over-read allows an attacker to read memory adjacent to the allocated buffer. In the context of an image processing daemon, this could include fragments of other images, temporary data, or metadata that should have been isolated. The attacker cannot write to memory or execute code, but sensitive image data or system information in heap memory could be leaked.
Is there a workaround if I cannot patch immediately?
Yes, two options: disable the -distribute-cache feature if it is not critical to your image workflows, or restrict local system access and process permissions to only trusted users and accounts. Neither is a permanent solution; patching is the recommended long-term fix.
This analysis is provided for informational purposes to help security teams assess and remediate CVE-2026-47166. SEC.co makes no warranties regarding the accuracy or completeness of vulnerability details and strongly recommends organizations verify all patch versions, affected product versions, and remediation steps against official vendor advisories and their own system configurations before taking action. Consult your vendor's security bulletin for definitive guidance. Exploitation timelines, attack sophistication, and organizational risk tolerance vary widely; prioritize remediation based on your specific environment and risk profile. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-42326MEDIUMImageMagick IPTC Out-of-Bounds Read (Medium, 5.1 CVSS)
- CVE-2026-45358MEDIUMImageMagick Off-by-One Meta Encoder Information Disclosure
- CVE-2026-45359MEDIUMImageMagick Heap Buffer Over-Read in Connected Components
- CVE-2026-45624MEDIUMImageMagick Out-of-Bounds Read in Polynomial Distortion
- CVE-2023-5502MEDIUMArista EOS 802.1x Authentication Bypass Vulnerability
- CVE-2025-70101MEDIUMlwext4 1.0.0 Out-of-Bounds Read Denial of Service
- CVE-2026-10283MEDIUMBottelet DaybydayCRM Authentication Bypass in Settings Handler
- CVE-2026-10305MEDIUMOut-of-Bounds Read in Samsung rlottie Animation Library