MEDIUM 6.5 NuGet

ImageMagick releases an invalid pointer in BilateralBlur when memory allocation fails

GHSA-39h3-g67r-7g3c · CVE-2026-22770

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

The BilateralBlurImage method will allocate a set of double buffers inside AcquireBilateralTLS. But the last element in the set is not properly initialized. This will result in a release of an invalid pointer inside DestroyBilateralTLS when the memory allocation fails.

Ready to move

Start Securing

Free, no credit card | First findings in minutes