← Vulnerability feed

Vulnerability record · CVE-2018-16323 · published 1 September 2018

CVE-2018-16323: ImageMagick XBM decoder leaks uninitialized memory via negative pixel value

Imagemagick · Imagemagick

ReadXBMImage in coders/xbm.c in ImageMagick before 7.0.8-9 leaves data uninitialized when processing an XBM file containing a negative pixel value. When ImageMagick is used as a library inside a process holding sensitive data, that memory can be exposed through the resulting image output. The flaw is an information disclosure issue, not code execution.

6.5 CVSS 3.1 Medium EPSS 49% · top 1.1% CWE-200 · Information exposure
6.5CVSS 3.1 base score, v2 4.3
49%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
8References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

high priorityPublic exploit code and a high EPSS score make exploitation likely, though the impact is limited to information disclosure rather than code execution.

What it is

ReadXBMImage in coders/xbm.c in ImageMagick before 7.0.8-9 leaves data uninitialized when processing an XBM file containing a negative pixel value. When ImageMagick is used as a library inside a process holding sensitive data, that memory can be exposed through the resulting image output. The flaw is an information disclosure issue, not code execution.

Impact

An attacker can read uninitialized heap memory from the host process, potentially exposing sensitive data such as credentials or keys that happen to reside in that memory. The leak is limited to whatever data is present in the uninitialized buffer.

Attack surface

Reached by supplying a crafted XBM file to any application that decodes images with the affected ImageMagick library. The CVSS vector indicates network delivery with no privileges required, but user interaction is required to get the file processed.

Exploitation

Not listed in CISA KEV, but EPSS is high at roughly 0.49 probability (98.8th percentile) and a public Exploit-DB entry (45890) exists, indicating exploit code is available. No ransomware association is documented.

What to do

  • Upgrade ImageMagick to 7.0.8-9 or later, or apply the vendor patch commit 216d117f05bff87b9dc4db55a1b1fadb38bcb786.
  • Apply the Ubuntu security updates referenced in USN-3785-1 and USN-4034-1 for packaged versions.
  • Restrict or disable XBM decoding in image processing pipelines that do not need the format.
  • Run image decoding in a sandboxed, low-privilege process that holds no sensitive data in memory.

Detection

  • Monitor for XBM files with negative pixel values or malformed headers reaching image processing services.
  • Alert on ImageMagick crashes or abnormal memory-related errors during XBM decode.
  • Review image upload and conversion endpoints for untrusted XBM input and log the source of such files.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://github.com/ImageMagick/ImageMagick/commit/216d117f05bff87b9dc4db55a1b1fadb38bcb786 Issue TrackingPatchThird Party Advisory
https://usn.ubuntu.com/3785-1/ Third Party Advisory
https://usn.ubuntu.com/4034-1/ Third Party Advisory
https://www.exploit-db.com/exploits/45890/ ExploitThird Party AdvisoryVDB Entry
https://github.com/ImageMagick/ImageMagick/commit/216d117f05bff87b9dc4db55a1b1fadb38bcb786 Issue TrackingPatchThird Party Advisory
https://usn.ubuntu.com/3785-1/ Third Party Advisory
https://usn.ubuntu.com/4034-1/ Third Party Advisory
https://www.exploit-db.com/exploits/45890/ ExploitThird Party AdvisoryVDB Entry

Track CVE-2018-16323 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-11651SaltStack Salt master authentication bypass in ClearFuncsSaltStack Salt before 2019.2.4 and 3000 before 3000.2 fails to properly validate method calls in the salt-master ClearFuncs class, allowing remote un…KEVEPSS 97%analysed9.8CVE-2020-7247OpenSMTPD MAIL FROM command injection allows remote root code executionOpenSMTPD 6.6, as shipped in OpenBSD 6.6 and other products, mishandles input validation in smtp_mailaddr in smtp_session.c, returning an incorrect v…KEVEPSS 99%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2019-16928Exim heap buffer overflow in string_vformat via long EHLO commandExim 4.92 through 4.92.2 contains a heap-based buffer overflow in string_vformat in string.c triggered by a long EHLO command, allowing remote code e…KEVEPSS 42%analysed9.8CVE-2019-10149Exim MTA improper recipient validation leads to remote command executionExim versions 4.87 through 4.91 fail to properly validate recipient addresses in the deliver_message() function in /src/deliver.c, allowing command i…KEVEPSS 100%analysed9.8CVE-2018-6789Exim SMTP base64d buffer overflow allows remote code executionExim before 4.90.1 contains a buffer overflow in the base64d function of its SMTP listener. A handcrafted message can trigger the overflow, and the f…KEVEPSS 82%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed9.8CVE-2016-3427Oracle Java SE JMX Improper Access Control VulnerabilityCVE-2016-3427 is an unspecified vulnerability in Oracle Java SE 6u113, 7u99, 8u77, Java SE Embedded 8u77, and JRockit R28.3.9, reached through vector…KEVEPSS 92%analysed

Source: NIST National Vulnerability Database (record CVE-2018-16323), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.