Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-16323 EUVD-2018-8174GHSA-q2cj-g3jg-cp49

ReadXBMImage in coders/xbm.c in ImageMagick before 7.0.8-9 leaves data uninitialized when processing an XBM file that has a negative pixel …

Published Sep 1, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

ReadXBMImage in coders/xbm.c in ImageMagick before 7.0.8-9 leaves data uninitialized when processing an XBM file that has a negative pixel value. If the affected code is used as a library loaded into a process that includes sensitive information, that information sometimes can be leaked via the image data.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 imagemagick 8:6.9.10.14+dfsg-1 —
Debian 13 imagemagick 8:6.9.10.14+dfsg-1 —
Debian 12 imagemagick 8:6.9.10.14+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS imagemagick 8:6.9.7.4+dfsg-16ubuntu6.4 USN-4034-1, USN-3785-1
Ubuntu 16.04 LTS imagemagick 8:6.8.9.9-7ubuntu5.13 USN-4034-1, USN-3785-1
Ubuntu 14.04 LTS imagemagick 8:6.7.7.10-6ubuntu3.13 USN-3785-1
ReleasePackageFixed inAdvisory
SLES 15 ImageMagick 7.0.7.34-3.24.1 SUSE-SU-2018:2977-1
SLES 12 SP3 ImageMagick 6.8.8.1-71.74.1 SUSE-SU-2018:2778-1
SLES 11 SP4 GraphicsMagick 1.2.5-78.72.1 SUSE-SU-2018:3269-1
SLES 11 SP4 ImageMagick 6.4.3.6-78.74.1 SUSE-SU-2018:3348-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Studio Onsite 1.3 GraphicsMagick 1.2.5-78.72.1 SUSE-SU-2018:3269-1
SLES for SAP 12 SP3 ImageMagick 6.8.8.1-71.74.1 SUSE-SU-2018:2778-1
SLES for SAP 11 SP4 ImageMagick 6.4.3.6-78.74.1 SUSE-SU-2018:3348-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 7

References