A AegiFlow
LOWCVSS 3.7

GHSA-qvxh-prvr-85w2

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

Published
2026-07-24
Modified
2026-07-24
Sources
github-advisory

Summary

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

Affected packages

EcosystemPackageAffected versionsFixed versions
NuGetMagick.NET-Q16-AnyCPU—14.15.0
NuGetMagick.NET-Q16-arm64—14.15.0
NuGetMagick.NET-Q16-HDRI-AnyCPU—14.15.0
NuGetMagick.NET-Q16-HDRI-arm64—14.15.0
NuGetMagick.NET-Q16-HDRI-OpenMP-arm64—14.15.0
NuGetMagick.NET-Q16-HDRI-x64—14.15.0
NuGetMagick.NET-Q16-HDRI-x86—14.15.0
NuGetMagick.NET-Q16-OpenMP-arm64—14.15.0
NuGetMagick.NET-Q16-OpenMP-x64—14.15.0
NuGetMagick.NET-Q16-x64—14.15.0
NuGetMagick.NET-Q16-x86—14.15.0
NuGetMagick.NET-Q8-AnyCPU—14.15.0
NuGetMagick.NET-Q8-arm64—14.15.0
NuGetMagick.NET-Q8-OpenMP-arm64—14.15.0
NuGetMagick.NET-Q8-OpenMP-x64—14.15.0
NuGetMagick.NET-Q8-x64—14.15.0
NuGetMagick.NET-Q8-x86—14.15.0

Remediation: Upgrade to 14.15.0 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.