ImageMagick has a heap-buffer-overflow

Description

Summary

While Processing a crafted TIFF file, imagemagick crashes.

Details

Following is the imagemagick version:

imagemagick_git/build_26jun23/bin/magick --version
Version: ImageMagick 7.1.1-13 (Beta) Q16-HDRI x86_64 56f478940:20230625 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI 
Delegates (built-in): fontconfig freetype jbig jng jpeg lcms lzma pangocairo png tiff webp x xml zlib
Compiler: gcc (4.2)

PoC

issue can be replicated with following command with provided POC file(sent over email):

magick poc.tiff /dev/null

Impact

This can lead to application crash.

Credits

Please give credits to Hardik shah of Vehere (Dawn Treaders team)

Basic information

Type
reviewed
Severity
low
Advisory on GitHub
Open advisory ↗
Repository advisory
Open repository advisory ↗
Source code
Browse source ↗
Published (advisory)
2025-08-25 15:54:51 UTC
Updated
2025-12-31 22:18:05 UTC
GitHub reviewed
2025-08-25 15:54:51 UTC
NVD published
2025-12-18

EPSS Score

Score Percentile
0.03% 7.92%

CVSS Scores

Base score Version Severity Vector
3.3 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.
1.1 4.0
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U Click to expand
Attack vector (AV:L)
Attacker needs local access on the target system.
Attack complexity (AC:L)
Exploitation conditions are straightforward and stable.
Attack requirements (AT:N)
No additional preconditions are required beyond normal reachability.
Privileges required (PR:N)
No privileges are required.
User interaction (UI:P)
A user has to participate (for example click/open/approve).
Vulnerable system confidentiality impact (VC:N)
No confidentiality impact on the vulnerable system.
Vulnerable system integrity impact (VI:N)
No integrity impact on the vulnerable system.
Vulnerable system availability impact (VA:L)
Limited availability impact on the vulnerable system.
Subsequent system confidentiality impact (SC:N)
No confidentiality impact on subsequent systems.
Subsequent system integrity impact (SI:N)
No integrity impact on subsequent systems.
Subsequent system availability impact (SA:N)
No availability impact on subsequent systems.
Exploit maturity (threat) (E:U)
Unreported: no public PoC, no reported exploitation, and no known simplification tools.

Identifiers

CWEs

CWE id Name
CWE-122 Heap-based Buffer Overflow

Credits

  • hardik05 (reporter)

Affected packages (18)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
nuget Magick.NET-Q16-AnyCPU < 13.2.0 13.2.0
nuget Magick.NET-Q16-HDRI-AnyCPU < 13.2.0 13.2.0
nuget Magick.NET-Q16-HDRI-OpenMP-arm64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-HDRI-OpenMP-x64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-HDRI-arm64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-HDRI-x64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-HDRI-x86 < 13.2.0 13.2.0
nuget Magick.NET-Q16-OpenMP-arm64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-OpenMP-x64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-arm64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-x64 < 13.2.0 13.2.0
nuget Magick.NET-Q16-x86 < 13.2.0 13.2.0
nuget Magick.NET-Q8-AnyCPU < 13.2.0 13.2.0
nuget Magick.NET-Q8-OpenMP-arm64 < 13.2.0 13.2.0
nuget Magick.NET-Q8-OpenMP-x64 < 13.2.0 13.2.0
nuget Magick.NET-Q8-arm64 < 13.2.0 13.2.0
nuget Magick.NET-Q8-x64 < 13.2.0 13.2.0
nuget Magick.NET-Q8-x86 < 13.2.0 13.2.0

References

cvelogic Threat Intelligence