CVE-2026-22770: ImageMagick vulnerable to Release of Invalid Pointer in BilateralBlur when memory allocation fails
ImageMagick is free and open-source software used for editing and manipulating digital images. The BilateralBlurImage method will allocate a set of double buffers inside AcquireBilateralTLS. But, in versions prior to 7.1.2-13, 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. Version 7.1.2-13 contains a patch for the issue.
Other sources
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.
— GitHub
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-22770?
CVE-2026-22770 has been classified as a moderate severity vulnerability.
How do I fix CVE-2026-22770?
To fix CVE-2026-22770, upgrade ImageMagick to version 7.1.2-14 or later.
What software is affected by CVE-2026-22770?
CVE-2026-22770 affects ImageMagick versions prior to 7.1.2-14.
What type of vulnerability is CVE-2026-22770?
CVE-2026-22770 is a vulnerability related to the release of an invalid pointer in the BilateralBlurImage method.
When was CVE-2026-22770 disclosed?
CVE-2026-22770 was disclosed in October 2026.