Use-after-free in ImageMagick - CVE-2023-5341
Published: November 10, 2023
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a use-after-free error within the ReadBMPImage() function in coders/bmp.c. A remote attacker can pass a specially crafted image to the application, trigger a use-after-free error and execute arbitrary code on the system.
Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.
Affected software
Amazon Linux AMI
Gentoo Linux
Debian Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Software Development Kit 12
SUSE Linux Enterprise Server 12
SUSE CaaS Platform
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Proxy
Fedora
SUSE Linux Enterprise Workstation Extension 12
Ubuntu
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP1 LTSS
Development Tools Module
Desktop Applications Module
openSUSE Leap
openEuler
Anolis OS
Oracle Communications Operations Monitor
imagemagick (Ubuntu package)
imagemagick-6.q16 (Ubuntu package)
libmagickcore-6.q16-6 (Ubuntu package)
libmagickcore-6.q16-6-extra (Ubuntu package)
libmagickcore-6.q16-3 (Ubuntu package)
libmagickcore-6.q16-3-extra (Ubuntu package)
libmagickcore-6.q16-2 (Ubuntu package)
libmagickcore-6.q16-2-extra (Ubuntu package)
libmagickcore5 (Ubuntu package)
libmagickcore5-extra (Ubuntu package)
libMagickCore-6_Q16-1
libMagickCore-6_Q16-1-debuginfo-32bit
libMagickCore-6_Q16-1-32bit
libMagickWand-6_Q16-1-debuginfo
libMagickWand-6_Q16-1
libMagickCore-6_Q16-1-debuginfo
libMagick++-6_Q16-3
ImageMagick-config-6-SUSE
libMagick++-devel
ImageMagick
ImageMagick-devel
libMagick++-6_Q16-3-debuginfo
ImageMagick-debuginfo
ImageMagick-config-6-upstream
ImageMagick-debugsource
perl-PerlMagick-debuginfo
perl-PerlMagick
imagemagick (Debian package)
ImageMagick-help
ImageMagick-perl
ImageMagick-c++
ImageMagick-c++-devel
libMagick++-7_Q16HDRI4-debuginfo
libMagickCore-7_Q16HDRI6
libMagickWand-7_Q16HDRI6-debuginfo
ImageMagick-config-7-SUSE
libMagickWand-7_Q16HDRI6
libMagick++-7_Q16HDRI4
libMagickCore-7_Q16HDRI6-debuginfo
ImageMagick-config-7-upstream
libMagickWand-7_Q16HDRI6-32bit-debuginfo
libMagickCore-7_Q16HDRI6-32bit
libMagickWand-7_Q16HDRI6-32bit
libMagick++-7_Q16HDRI4-32bit
libMagickCore-7_Q16HDRI6-32bit-debuginfo
libMagick++-7_Q16HDRI4-32bit-debuginfo
ImageMagick-devel-64bit
libMagickWand-7_Q16HDRI10-debuginfo
libMagickCore-7_Q16HDRI10
ImageMagick-extra-debuginfo
ImageMagick-extra
libMagickWand-7_Q16HDRI10
libMagickCore-7_Q16HDRI10-debuginfo
libMagick++-7_Q16HDRI5-debuginfo
libMagickWand-7_Q16HDRI10-32bit-debuginfo
libMagickWand-7_Q16HDRI10-64bit
libMagick++-7_Q16HDRI5-64bit
libMagickCore-7_Q16HDRI10-64bit-debuginfo
libMagickWand-7_Q16HDRI10-64bit-debuginfo
libMagick++-devel-64bit
libMagickCore-7_Q16HDRI10-64bit
libMagick++-7_Q16HDRI5-64bit-debuginfo
ImageMagick-doc
libMagick++-7_Q16HDRI5-32bit-debuginfo
libMagick++-7_Q16HDRI5-32bit
libMagickCore-7_Q16HDRI10-32bit-debuginfo
libMagickCore-7_Q16HDRI10-32bit
libMagickWand-7_Q16HDRI10-32bit
ImageMagick-devel-32bit
libMagick++-devel-32bit
libMagick++-7_Q16HDRI5
ImageMagick-djvu
ImageMagick-libs
How to mitigate CVE-2023-5341
imagemagick (Ubuntu package) - update to Ubuntu Pro (Infra-only)
imagemagick-6.q16 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
libmagickcore-6.q16-6 (Ubuntu package) - update to Ubuntu Pro
libmagickcore-6.q16-6-extra (Ubuntu package) - update to Ubuntu Pro
libmagickcore-6.q16-3 (Ubuntu package) - update to Ubuntu Pro
libmagickcore-6.q16-3-extra (Ubuntu package) - update to Ubuntu Pro
libmagickcore-6.q16-2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
libmagickcore-6.q16-2-extra (Ubuntu package) - update to Ubuntu Pro (Infra-only)
libmagickcore5 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
libmagickcore5-extra (Ubuntu package) - update to Ubuntu Pro (Infra-only)
libMagickCore-6_Q16-1 - update to 6.8.8.1-71.201.1
libMagickCore-6_Q16-1-debuginfo-32bit - update to 6.8.8.1-71.201.1
libMagickCore-6_Q16-1-32bit - update to 6.8.8.1-71.201.1
libMagickWand-6_Q16-1-debuginfo - update to 6.8.8.1-71.201.1
libMagickWand-6_Q16-1 - update to 6.8.8.1-71.201.1
libMagickCore-6_Q16-1-debuginfo - update to 6.8.8.1-71.201.1
libMagick++-6_Q16-3 - update to 6.8.8.1-71.201.1
ImageMagick-config-6-SUSE - update to 6.8.8.1-71.201.1
libMagick++-devel - addressed in versions 6.8.8.1-71.201.1, 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
ImageMagick - addressed in versions 6.8.8.1-71.201.1, 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
ImageMagick-devel - addressed in versions 6.8.8.1-71.201.1, 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
libMagick++-6_Q16-3-debuginfo - update to 6.8.8.1-71.201.1
ImageMagick-debuginfo - addressed in versions 6.8.8.1-71.201.1, 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
ImageMagick-config-6-upstream - update to 6.8.8.1-71.201.1
ImageMagick-debugsource - addressed in versions 6.8.8.1-71.201.1, 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
perl-PerlMagick-debuginfo - addressed in versions 6.8.8.1-71.201.1, 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
perl-PerlMagick - addressed in versions 6.8.8.1-71.201.1, 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
ImageMagick - addressed in versions 6.9.10.97-1.30, 6.9.12.82-1
imagemagick (Debian package) - addressed in versions 8:6.9.11.60+dfsg-1.6+deb12u1, 8:6.9.11.60+dfsg-1.3+deb11u3
ImageMagick-debugsource - update to 6.9.12.86-5
ImageMagick-help - update to 6.9.12.86-5
ImageMagick-debuginfo - update to 6.9.12.86-5
ImageMagick-perl - update to 6.9.12.86-5
ImageMagick-c++ - update to 6.9.12.86-5
ImageMagick-c++-devel - update to 6.9.12.86-5
ImageMagick-devel - update to 6.9.12.86-5
ImageMagick - update to 6.9.12.86-5
ImageMagick - addressed in versions 6.9.13.14-1.el8, 6.9.13.14-1.el9, 7.1.1.26-1.fc38, 7.1.1.26-1.fc39, 7.1.1.26-2.fc38, 7.1.1.26-2.fc39
libMagick++-7_Q16HDRI4-debuginfo - addressed in versions 7.0.7.34-150000.3.123.1, 7.0.7.34-150200.10.57.1
libMagickCore-7_Q16HDRI6 - addressed in versions 7.0.7.34-150000.3.123.1, 7.0.7.34-150200.10.57.1
libMagickWand-7_Q16HDRI6-debuginfo - addressed in versions 7.0.7.34-150000.3.123.1, 7.0.7.34-150200.10.57.1
ImageMagick-config-7-SUSE - addressed in versions 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI6 - addressed in versions 7.0.7.34-150000.3.123.1, 7.0.7.34-150200.10.57.1
libMagick++-7_Q16HDRI4 - addressed in versions 7.0.7.34-150000.3.123.1, 7.0.7.34-150200.10.57.1
libMagickCore-7_Q16HDRI6-debuginfo - addressed in versions 7.0.7.34-150000.3.123.1, 7.0.7.34-150200.10.57.1
ImageMagick-config-7-upstream - addressed in versions 7.0.7.34-150000.3.123.1, 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI6-32bit-debuginfo - update to 7.0.7.34-150200.10.57.1
libMagickCore-7_Q16HDRI6-32bit - update to 7.0.7.34-150200.10.57.1
libMagickWand-7_Q16HDRI6-32bit - update to 7.0.7.34-150200.10.57.1
libMagick++-7_Q16HDRI4-32bit - update to 7.0.7.34-150200.10.57.1
libMagickCore-7_Q16HDRI6-32bit-debuginfo - update to 7.0.7.34-150200.10.57.1
libMagick++-7_Q16HDRI4-32bit-debuginfo - update to 7.0.7.34-150200.10.57.1
ImageMagick-devel-64bit - update to 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI10-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagickCore-7_Q16HDRI10 - update to 7.1.0.9-150400.6.27.1
ImageMagick-extra-debuginfo - update to 7.1.0.9-150400.6.27.1
ImageMagick-extra - update to 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI10 - update to 7.1.0.9-150400.6.27.1
libMagickCore-7_Q16HDRI10-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagick++-7_Q16HDRI5-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI10-32bit-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI10-64bit - update to 7.1.0.9-150400.6.27.1
libMagick++-7_Q16HDRI5-64bit - update to 7.1.0.9-150400.6.27.1
libMagickCore-7_Q16HDRI10-64bit-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI10-64bit-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagick++-devel-64bit - update to 7.1.0.9-150400.6.27.1
libMagickCore-7_Q16HDRI10-64bit - update to 7.1.0.9-150400.6.27.1
libMagick++-7_Q16HDRI5-64bit-debuginfo - update to 7.1.0.9-150400.6.27.1
ImageMagick-doc - update to 7.1.0.9-150400.6.27.1
libMagick++-7_Q16HDRI5-32bit-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagick++-7_Q16HDRI5-32bit - update to 7.1.0.9-150400.6.27.1
libMagickCore-7_Q16HDRI10-32bit-debuginfo - update to 7.1.0.9-150400.6.27.1
libMagickCore-7_Q16HDRI10-32bit - update to 7.1.0.9-150400.6.27.1
libMagickWand-7_Q16HDRI10-32bit - update to 7.1.0.9-150400.6.27.1
ImageMagick-devel-32bit - update to 7.1.0.9-150400.6.27.1
libMagick++-devel-32bit - update to 7.1.0.9-150400.6.27.1
libMagick++-7_Q16HDRI5 - update to 7.1.0.9-150400.6.27.1
ImageMagick-devel - update to 7.1.1.11-3
ImageMagick-c++-devel - update to 7.1.1.11-3
ImageMagick-perl - update to 7.1.1.11-3
ImageMagick-djvu - update to 7.1.1.11-3
ImageMagick-doc - update to 7.1.1.11-3
ImageMagick-libs - update to 7.1.1.11-3
ImageMagick-c++ - update to 7.1.1.11-3
ImageMagick - update to 7.1.1.11-3
External References
Related Security Bulletins
- Use-after-free in ImageMagick
- Amazon Linux AMI update for ImageMagick
- SUSE update for ImageMagick
- SUSE update for ImageMagick
- SUSE update for ImageMagick
- SUSE update for ImageMagick
- Fedora 39 update for ImageMagick
- Fedora 38 update for ImageMagick
- Ubuntu update for imagemagick
- openEuler update for ImageMagick
- Multiple vulnerabilities in Oracle Communications Operations Monitor
- Gentoo update for ImageMagick
- Debian update for imagemagick
- Fedora EPEL 9 update for ImageMagick
- Fedora EPEL 8 update for ImageMagick
- Amazon Linux AMI update for ImageMagick
- Fedora 38 update for ImageMagick
- Fedora 39 update for ImageMagick
- Anolis OS update for ImageMagick