CVE-2018-16323

MEDIUM

ImageMagick < 6.9.10-9 - Information Exposure via XBM Image Processing

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2018-16323. PoCs published by ttffdd.

AI-analyzed exploit summary This script generates and recovers malformed XBM files to exploit CVE-2018-16323, a vulnerability in ImageMagick. It manipulates the XBM file format to trigger an out-of-bounds read, potentially leaking memory contents.

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.

Exploits (2)

exploitdb WORKING POC
by ttffdd · bashlocalmultiple
https://www.exploit-db.com/exploits/45890

This script generates and recovers malformed XBM files to exploit CVE-2018-16323, a vulnerability in ImageMagick. It manipulates the XBM file format to trigger an out-of-bounds read, potentially leaking memory contents.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: ImageMagick versions prior to 7.0.8-13
No auth needed
Prerequisites: ImageMagick installed on the target system · Ability to process malformed XBM files
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 82 stars
by ttffdd · poc
https://github.com/ttffdd/XBadManners

This repository contains a PoC for CVE-2018-16323, a memory leakage vulnerability in ImageMagick when processing XBM images. The script generates malicious XBM files and recovers leaked memory from converted images.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: ImageMagick (versions between specific commits)
No auth needed
Prerequisites: ImageMagick installed on the target system · ability to upload XBM files to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (4)

Core 4
Core References
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/45890/
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3785-1/
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4034-1/

Scores

CVSS v3 6.5
EPSS 0.4932
EPSS Percentile 98.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Details

CWE
CWE-200
Status published
Products (6)
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
canonical/ubuntu_linux 18.10
canonical/ubuntu_linux 19.04
imagemagick/imagemagick < 6.9.10-9
Published Sep 01, 2018
Tracked Since Feb 18, 2026