Skip to main content

ImageMagick CVE-2026-34238

| EUVDEUVD-2026-22112 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-04-13 https://github.com/ImageMagick/ImageMagick GHSA-26qp-ffjh-2x4v
5.1
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
5.1 MEDIUM
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI
5.1 MEDIUM

32-bit build prerequisite justifies AC:H; local image processing path justifies AV:L; no auth at library level; availability-only crash impact with no C or I effect.

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE
MEDIUM
qualitative
Red Hat
5.0 MEDIUM
qualitative

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
Source Code Evidence Fetched
Jul 24, 2026 - 08:04 vuln.today
Analysis Generated
Jul 24, 2026 - 08:04 vuln.today
EUVD ID Assigned
Apr 13, 2026 - 19:30 euvd
EUVD-2026-22112
Patch released
Apr 13, 2026 - 19:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 19:10 nvd
MEDIUM 5.1

DescriptionGitHub Advisory

An integer overflow in the despeckle operation causes a heap buffer overflow on 32-bit builds that will result in an out of bounds write.

==1551685==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xea2fb818 at pc 0x56cbc42a bp 0xffc4ce48 sp 0xffc4ce38
WRITE of size 8 at 0xea2fb818 thread T0

AnalysisAI

Integer overflow in ImageMagick's despeckle operation corrupts the heap on 32-bit builds, enabling an out-of-bounds write that crashes the process. Affected are ImageMagick before 7.1.2-19 and 6.9.13-44, and all Magick.NET NuGet packages before 14.12.0. No public exploit code exists and CISA has not listed this in KEV; EPSS at 0.01% (2nd percentile) and SSVC exploitation status of none confirm this as a low-urgency, patch-when-convenient finding for most organizations.

Technical ContextAI

The root cause is CWE-190 (Integer Overflow or Wraparound) in the DespeckleImage() function within MagickCore/effect.c. On 32-bit platforms, size_t is a 32-bit type, so the expression (image->columns+2)*(image->rows+2) can silently wrap around when image dimensions are sufficiently large, producing a value far smaller than the actual required allocation size. The resulting undersized heap buffer is then written beyond its boundary, as confirmed by the AddressSanitizer trace showing a WRITE of size 8 past the allocation. The upstream fix (commit bcd8519c70ecd9ebbc180920f2cf97b267d1f440) adds explicit pre-multiplication bounds checking against MAGICK_SIZE_MAX before computing length and removes the lossy (size_t) cast. Affected packages span multiple Magick.NET NuGet variants - Q8/Q16 in AnyCPU and x86 configurations - meaning AnyCPU packages are vulnerable when the runtime is 32-bit (x86 process). 64-bit builds are structurally immune because size_t is 64 bits and the overflow cannot occur at any realistic image dimension.

RemediationAI

Upgrade to ImageMagick 7.1.2-19 or later (release: https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19) or 6.9.13-44 or later for the legacy 6.x branch. For .NET consumers, update all affected Magick.NET NuGet packages to version 14.12.0 or later (release: https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0). The upstream fix is commit bcd8519c70ecd9ebbc180920f2cf97b267d1f440. Where immediate patching is not feasible, migrating the ImageMagick service from a 32-bit to a 64-bit binary fully eliminates the vulnerability without a code change, since size_t overflow cannot occur on 64-bit platforms - this is the most effective compensating control and has no functional side effects. Alternatively, if the despeckle filter is not required, disable or gate its invocation in application code to prevent the vulnerable code path from being reached; this reduces functionality but avoids the overflow entirely.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed

Share

CVE-2026-34238 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy