LOW 3.7

CVE-2026-56367: ImageMagick PSB Integer Overflow Information Disclosure

ImageMagick, a widely-used image processing library, contains an integer overflow vulnerability in its PSD (Photoshop) file parser. When processing a malformed PSB (large document) file, the RLE decompression routine can miscalculate buffer sizes, leading to out-of-bounds memory reads. This primarily affects 32-bit builds and can result in information disclosure (leaking nearby memory) or application crashes. The attack requires no user interaction and can be triggered remotely by sending a crafted PSB file.

Source data · NVD / CISA · public domain

CVSS
3.1 · 3.7 LOW · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses (CWE)
CWE-125
Affected products
1 configuration(s)
Published / Modified
2026-06-21 / 2026-06-26

NVD description (verbatim)

ImageMagick before 7.1.2-15 and 6.9.x before 6.9.13-40 contains an integer overflow in the PSB (PSD v2) RLE decoding path (ReadPSDChannelRLE in coders/psd.c) that causes a heap out-of-bounds read on 32-bit builds. Processing a crafted PSB file can lead to information disclosure or a crash.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in the ReadPSDChannelRLE function within coders/psd.c. An integer overflow in the PSB RLE decoding path permits a heap out-of-bounds read on 32-bit systems. The flaw occurs when processing channel data in Photoshop version 2 documents; insufficient bounds checking combined with integer arithmetic allows an attacker to read memory beyond allocated heap buffers. This is classified as CWE-125 (out-of-bounds read). The condition is triggered during image decompression and does not require special privileges or user interaction to exploit.

Business impact

For organizations using ImageMagick in server-side image processing pipelines (web applications, document conversion services, media workflows), this vulnerability enables remote attackers to crash services or extract sensitive data from process memory. Although the CVSS score is low, the lack of authentication requirements and network accessibility make it relevant for any public-facing system that accepts PSB uploads. The information disclosure risk is particularly concerning in multi-tenant or shared environments where process memory may contain unrelated user data.

Affected systems

ImageMagick versions before 7.1.2-15 and 6.9.x versions before 6.9.13-40 are vulnerable. The flaw specifically impacts 32-bit builds; 64-bit systems are not affected by this integer overflow condition. Any deployment using an older version to process untrusted PSB or PSD files—such as online converters, thumbnail generators, or document management systems—is at risk.

Exploitability

Exploitation is network-accessible and requires no authentication, but the attack surface is limited to systems that process PSB files. An attacker must craft a malformed PSB file with specific RLE-encoded channel data that triggers the integer overflow. The complexity is rated as high (AC:H in the CVSS vector), reflecting the precision needed to construct a triggering input. However, once developed, a working proof-of-concept could be reliably reproduced. The vulnerability is not listed in the CISA KEV catalog, indicating no evidence of active exploitation to date.

Remediation

Update ImageMagick to version 7.1.2-15 or later for the 7.x branch, or 6.9.13-40 or later for the 6.9.x branch. If immediate patching is not feasible, disable PSB/PSD file processing in ImageMagick or restrict file upload functionality to trusted sources only. Consider disabling ImageMagick plugins in applications if only specific image formats are needed.

Patch guidance

Apply the following version updates: ImageMagick 7.1.2-15 or later, or ImageMagick 6.9.13-40 or later. Verify the installed version using 'identify -version'. After patching, test existing PSB workflows to ensure compatibility. Automated patch management systems should prioritize this update for any system exposed to untrusted file uploads. Check with your distribution or package manager for backported fixes if you are on a long-term support release that may not jump to the latest upstream version.

Detection guidance

Monitor logs for ImageMagick process crashes or segmentation faults when PSB files are processed. Endpoint detection and response (EDR) tools can flag abnormal memory access patterns in ImageMagick processes. Network-level detection is difficult without file inspection; however, monitoring for unexpected connections to image processing services followed by unusual process termination may indicate exploitation attempts. Review application error logs for out-of-memory or heap corruption errors correlating with PSB file submissions.

Why prioritize this

Although the CVSS score is low, the combination of network accessibility, lack of authentication, and remote crash capability warrants prompt patching for internet-facing systems. Organizations should prioritize this based on exposure: servers accepting file uploads rank higher than internal tools. The absence from the KEV catalog suggests this is not actively exploited, allowing a measured but timely response rather than emergency remediation.

Risk score, explained

CVSS 3.7 reflects low severity due to limited impact scope: information disclosure is possible but typically requires favorable memory layout, and the vulnerability does not enable code execution or unauthorized modification. The 'high' attack complexity (AC:H) reflects the difficulty in crafting a reliable trigger. However, the 'network' attack vector and 'none' privilege requirement mean any internet-connected system processing PSB files is exposed. Risk should be reassessed upward for organizations where information disclosure from process memory is particularly sensitive (e.g., financial data processing, healthcare image handling).

Frequently asked questions

Does this affect 64-bit builds of ImageMagick?

No. The integer overflow is specific to 32-bit architectures. 64-bit builds are not vulnerable to this particular flaw, though they should still be patched as part of standard security maintenance.

Can this vulnerability be exploited without user interaction?

Yes. The vulnerability is triggered simply by processing a malformed PSB file. No user action—such as opening a dialog or clicking a button—is required. Any system that automatically parses PSB files (e.g., a server-side thumbnail generator) is at risk.

What's the difference between PSD and PSB files?

PSD is the standard Photoshop format; PSB ('large document format') supports larger file sizes and dimensions. Both are parsed by ImageMagick, but this vulnerability specifically affects PSB RLE decompression. The affected code path is used for both formats, so PSD files can also trigger it if they use the vulnerable RLE path.

Is this vulnerability actively being exploited?

No. This CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning there is no known evidence of active attacks in the wild to date. This provides a window for orderly patching without emergency response pressure.

This analysis is provided for informational purposes and represents the interpretation of publicly available vulnerability data as of June 2026. Patch version numbers and availability should be verified against official ImageMagick release notes and vendor advisories before deployment. Organizations should validate all patches in a test environment before production rollout. SEC.co does not provide legal, compliance, or risk management advice; consult your security team and compliance officers regarding remediation timelines specific to your environment and industry. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).