Use After Free Affecting imagemagick package, versions <7.1.2.29-r0


Severity

Recommended
0.0
low
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.55% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE323-IMAGEMAGICK-19667805
  • published10 Sept 2026
  • disclosed11 Jul 2026

Introduced: 11 Jul 2026

CVE-2026-61861  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Alpine:3.23 imagemagick to version 7.1.2.29-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream imagemagick package and not the imagemagick package as distributed by Alpine. See How to fix? for Alpine:3.23 relevant fixed versions and status.

ImageMagick before 7.1.2-26 contains a use-after-free vulnerability in the FormatMagickCaption method when memory allocation fails. Attackers can trigger memory allocation failures to cause a dangling pointer to reference freed memory, potentially enabling denial of service or code execution.

CVSS Base Scores

version 3.1