Skip to content
Memory corruption Advisory Advanced CVE-2021-21829

AT&T Labs Xmill XML decompression EnumerationUncompressor::UncompressItem heap-based buffer overflow vulnerability

A heap-based buffer overflow exists in the XML decompression functionality of AT&T Labs Xmill 0.7, specifically in EnumerationUncompressor::UncompressItem. A specially crafted XMI file can trigger the overflow, potentially leading to remote code execution.

Carl Hurd Follow

Originally disclosed on Cisco Talos

High 8.1 View original

A heap-based buffer overflow vulnerability exists in the XML Decompression EnumerationUncompressor::UncompressItem functionality of AT&T Labs’ Xmill 0.7. A specially crafted XMI file can lead to remote code execution.

Carl Hurd, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The decompression routine uses a length value from the compressed file without validating it against the actual buffer size before copying data into a heap buffer.

Impact

A malicious XMI file could cause a heap-based buffer overflow, potentially leading to remote code execution.

What the attacker needed

Victim opens a malicious XMI file

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report describes a memory corruption bug in an old XML decompression tool. When the tool decompresses a malicious file, it trusts a length value from the file and copies too much data into a fixed-size memory buffer, causing an overflow. An attacker could use this to run their own code on the victim's machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Carl Hurd

View all

49 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.