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

AT&T Labs Xmill XML decompression PlainTextUncompressor::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 PlainTextUncompressor::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 PlainTextUncompressor::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 decompressor reads a length from the compressed file and uses it directly in a memcpy without validating that the length does not exceed the destination buffer size.

Impact

A malicious XMI file could cause a heap 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 a file decompression tool. When the tool reads a compressed XML file, it trusts a length value from the file and copies that many bytes into a fixed-size buffer without checking if it fits, causing data to spill over and potentially allowing an attacker to run their own code.

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.