NULL pointer dereference in ImageMagick - CVE-2026-25795

 

NULL pointer dereference in ImageMagick - CVE-2026-25795

Published: February 25, 2026


Vulnerability identifier: #VU123229
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-25795
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error in the "ReadSFWImage()" function. A remote attacker can pass specially crafted data to the application and perform a denial of service (DoS) attack.


Affected software

ImageMagick
Debian Linux
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
Ubuntu
Desktop Applications Module
Development Tools Module
openSUSE Leap
openEuler
imagemagick (Ubuntu package)
libMagickWand-6_Q16-1-debuginfo
ImageMagick-config-6-upstream
ImageMagick-debugsource
ImageMagick-debuginfo
libMagickWand-6_Q16-1
libMagickCore-6_Q16-1
libMagick++-devel
libMagickCore-6_Q16-1-debuginfo
ImageMagick-devel
ImageMagick-config-6-SUSE
imagemagick (Debian package)
ImageMagick-help
ImageMagick-perl
ImageMagick
ImageMagick-c++
ImageMagick-c++-devel
libMagickWand-7_Q16HDRI10-32bit-debuginfo
libMagickCore-7_Q16HDRI10-32bit-debuginfo
libMagick++-devel-32bit
libMagickCore-7_Q16HDRI10-32bit
ImageMagick-extra
ImageMagick-extra-debuginfo
libMagick++-7_Q16HDRI5-debuginfo
ImageMagick-config-7-SUSE
libMagickWand-7_Q16HDRI10-debuginfo
perl-PerlMagick-debuginfo
libMagickWand-7_Q16HDRI10
libMagick++-7_Q16HDRI5-64bit
libMagickWand-7_Q16HDRI10-32bit
libMagick++-7_Q16HDRI5-32bit-debuginfo
ImageMagick-devel-32bit
libMagick++-7_Q16HDRI5-32bit
ImageMagick-doc
ImageMagick-devel-64bit
libMagick++-7_Q16HDRI5-64bit-debuginfo
libMagickCore-7_Q16HDRI10-64bit
libMagick++-devel-64bit
libMagickWand-7_Q16HDRI10-64bit
libMagickWand-7_Q16HDRI10-64bit-debuginfo
libMagickCore-7_Q16HDRI10-64bit-debuginfo
libMagickCore-7_Q16HDRI10-debuginfo
ImageMagick-config-7-upstream
libMagick++-7_Q16HDRI5
perl-PerlMagick
libMagickCore-7_Q16HDRI10
ImageMagick-config-7-upstream-limited
ImageMagick-config-7-upstream-websafe
ImageMagick-config-7-upstream-open
ImageMagick-config-7-upstream-secure

How to mitigate CVE-2026-25795

Install updates from vendor's website.

ImageMagick - addressed in versions 6.9.13-40, 7.1.2-15
imagemagick (Ubuntu package) - addressed in versions 8:6.7.7.10-6ubuntu3.13+esm20, 8:6.7.7.10-6ubuntu3.13+esm21, 8:6.8.9.9-7ubuntu5.16+esm19, 8:6.8.9.9-7ubuntu5.16+esm20, 8:6.9.7.4+dfsg-16ubuntu6.15+esm11, 8:6.9.7.4+dfsg-16ubuntu6.15+esm12, 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm9, 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm10, 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm9, 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm10, 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm8, 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9, 8:7.1.2.3+dfsg1-1ubuntu0.1
libMagickWand-6_Q16-1-debuginfo - update to 6.8.8.1-71.231.1
ImageMagick-config-6-upstream - update to 6.8.8.1-71.231.1
ImageMagick-debugsource - addressed in versions 6.8.8.1-71.231.1, 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-debuginfo - addressed in versions 6.8.8.1-71.231.1, 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
libMagickWand-6_Q16-1 - update to 6.8.8.1-71.231.1
libMagickCore-6_Q16-1 - update to 6.8.8.1-71.231.1
libMagick++-devel - addressed in versions 6.8.8.1-71.231.1, 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
libMagickCore-6_Q16-1-debuginfo - update to 6.8.8.1-71.231.1
ImageMagick-devel - addressed in versions 6.8.8.1-71.231.1, 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-config-6-SUSE - update to 6.8.8.1-71.231.1
imagemagick (Debian package) - addressed in versions 8:6.9.11.60+dfsg-1.6+deb12u7, 8:7.1.1.43+dfsg1-1+deb13u6
ImageMagick-help - addressed in versions 6.9.13.40-1, 7.1.2.15-1
ImageMagick-perl - addressed in versions 6.9.13.40-1, 7.1.2.15-1
ImageMagick-devel - addressed in versions 6.9.13.40-1, 7.1.2.15-1
ImageMagick-debugsource - addressed in versions 6.9.13.40-1, 7.1.2.15-1
ImageMagick-debuginfo - addressed in versions 6.9.13.40-1, 7.1.2.15-1
ImageMagick - addressed in versions 6.9.13.40-1, 7.1.2.15-1
ImageMagick-c++ - addressed in versions 6.9.13.40-1, 7.1.2.15-1
ImageMagick-c++-devel - addressed in versions 6.9.13.40-1, 7.1.2.15-1
libMagickWand-7_Q16HDRI10-32bit-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickCore-7_Q16HDRI10-32bit-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagick++-devel-32bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickCore-7_Q16HDRI10-32bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
ImageMagick-extra - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
ImageMagick-extra-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagick++-7_Q16HDRI5-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-config-7-SUSE - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
libMagickWand-7_Q16HDRI10-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
perl-PerlMagick-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
libMagickWand-7_Q16HDRI10 - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
libMagick++-7_Q16HDRI5-64bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickWand-7_Q16HDRI10-32bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagick++-7_Q16HDRI5-32bit-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
ImageMagick-devel-32bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagick++-7_Q16HDRI5-32bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
ImageMagick-doc - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
ImageMagick-devel-64bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagick++-7_Q16HDRI5-64bit-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickCore-7_Q16HDRI10-64bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagick++-devel-64bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickWand-7_Q16HDRI10-64bit - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickWand-7_Q16HDRI10-64bit-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickCore-7_Q16HDRI10-64bit-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2
libMagickCore-7_Q16HDRI10-debuginfo - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-config-7-upstream - update to 7.1.0.9-150400.6.68.2
libMagick++-7_Q16HDRI5 - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
perl-PerlMagick - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
libMagickCore-7_Q16HDRI10 - addressed in versions 7.1.0.9-150400.6.68.2, 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-config-7-upstream-limited - addressed in versions 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-config-7-upstream-websafe - addressed in versions 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-config-7-upstream-open - addressed in versions 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1
ImageMagick-config-7-upstream-secure - addressed in versions 7.1.1.21-150600.3.42.2, 7.1.1.43-150700.3.37.1

External References

Related Security Bulletins