Loading...
Skip to main content

CVE-2026-61861

LOW

ImageMagick: Use-After-Free in FormatMagickCaption when memory allocation fails

Published July 24, 2026Updated July 24, 2026Source: osv

Summary

When a memory allocation fails inside the FormatMagickCaption method a dangling pointer still points to the freed memory.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update Magick.NET-Q16-OpenMP-x64 to 14.15.0 or later
dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.15.0
NuGet
Update Magick.NET-Q8-x86 to 14.15.0 or later
dotnet add package Magick.NET-Q8-x86 --version 14.15.0
NuGet
Update Magick.NET-Q16-OpenMP-arm64 to 14.15.0 or later
dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.15.0
NuGet
Update Magick.NET-Q16-HDRI-AnyCPU to 14.15.0 or later
dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.15.0
NuGet
Update Magick.NET-Q8-OpenMP-arm64 to 14.15.0 or later
dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.15.0
NuGet
Update Magick.NET-Q16-HDRI-arm64 to 14.15.0 or later
dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.15.0
NuGet
Update Magick.NET-Q16-HDRI-x86 to 14.15.0 or later
dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.15.0
NuGet
Update Magick.NET-Q8-OpenMP-x64 to 14.15.0 or later
dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.15.0
NuGet
Update Magick.NET-Q8-arm64 to 14.15.0 or later
dotnet add package Magick.NET-Q8-arm64 --version 14.15.0
NuGet
Update Magick.NET-Q16-x64 to 14.15.0 or later
dotnet add package Magick.NET-Q16-x64 --version 14.15.0
NuGet
Update Magick.NET-Q16-x86 to 14.15.0 or later
dotnet add package Magick.NET-Q16-x86 --version 14.15.0
NuGet
Update Magick.NET-Q8-AnyCPU to 14.15.0 or later
dotnet add package Magick.NET-Q8-AnyCPU --version 14.15.0
NuGet
Update Magick.NET-Q16-HDRI-x64 to 14.15.0 or later
dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.15.0
NuGet
Update Magick.NET-Q16-AnyCPU to 14.15.0 or later
dotnet add package Magick.NET-Q16-AnyCPU --version 14.15.0
NuGet
Update Magick.NET-Q16-arm64 to 14.15.0 or later
dotnet add package Magick.NET-Q16-arm64 --version 14.15.0
NuGet
Update Magick.NET-Q8-x64 to 14.15.0 or later
dotnet add package Magick.NET-Q8-x64 --version 14.15.0
NuGet
Update Magick.NET-Q16-HDRI-OpenMP-arm64 to 14.15.0 or later
dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.15.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (17)

PackageEcosystemAffectedFixed In
Magick.NET-Q16-OpenMP-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+110 more)14.15.0
Magick.NET-Q8-x86
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+229 more)14.15.0
Magick.NET-Q16-OpenMP-arm64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+58 more)14.15.0
Magick.NET-Q16-HDRI-AnyCPU
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+210 more)14.15.0
Magick.NET-Q8-OpenMP-arm64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+58 more)14.15.0
Magick.NET-Q16-HDRI-arm64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+58 more)14.15.0
Magick.NET-Q16-HDRI-x86
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+210 more)14.15.0
Magick.NET-Q8-OpenMP-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+110 more)14.15.0
Magick.NET-Q8-arm64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+58 more)14.15.0
Magick.NET-Q16-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+229 more)14.15.0
Magick.NET-Q16-x86
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+229 more)14.15.0
Magick.NET-Q8-AnyCPU
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+213 more)14.15.0
Magick.NET-Q16-HDRI-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+210 more)14.15.0
Magick.NET-Q16-AnyCPU
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+213 more)14.15.0
Magick.NET-Q16-arm64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+58 more)14.15.0
Magick.NET-Q8-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+229 more)14.15.0
Magick.NET-Q16-HDRI-OpenMP-arm64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+58 more)14.15.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 3.7 score means for each attack dimension.

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

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Frequently Asked Questions

What is CVE-2026-61861?
ImageMagick: Use-After-Free in FormatMagickCaption when memory allocation fails This vulnerability has been assigned a severity rating of LOW (CVSS score: 3.7/10).
How do I check if my project is affected by CVE-2026-61861?
CVE-2026-61861 affects Magick.NET-Q16-OpenMP-x64, Magick.NET-Q8-x86 and Magick.NET-Q16-OpenMP-arm64 (and 14 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-61861 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
3.7

Exploitation is difficult or impact is minor. Address in your next planned update.

Also Known As

GHSA-qvxh-prvr-85w2

Related CVEs

  • CVE-2026-28494
    HIGH

    ImageMagick vulnerable to stack corruption through long morphology kernel names or arrays

  • CVE-2026-24485
    HIGH

    ImageMagick: Infinite loop vulnerability when parsing a PCD file

  • CVE-2026-46693
    MEDIUM

    ImageMagick: Race Condition in distributed pixel cache server can result in file descriptor hijacking

  • CVE-2026-48994
    MEDIUM

    ImageMagick has a Heap Buffer Over-Write in MAT decoder on 32-bit systems

  • CVE-2026-48734
    MEDIUM

    ImageMagick Vulnerable to Stack Overflow in its MVG Decoder

  • CVE-2026-25982
    MEDIUM

    ImageMagick has Heap Out-of-Bounds Read in DCM Decoder (ReadDCMImage)

  • CVE-2026-25898
    MEDIUM

    ImageMagick has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer

  • CVE-2026-56372
    LOW

    ImageMagick has a heap buffer overflow read in magnify operation via unrecognized magnify:method value

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies