Skip to content
Memory corruption Advisory Advanced CVE-2021-21826CVE-2021-21827CVE-2021-21828

AT&T Labs Xmill XML decompression DecodeTreeBlock multiple heap-based buffer overflow vulnerabilities

Multiple heap-based buffer overflow vulnerabilities exist in the XML decompression functionality of AT&T Labs Xmill 0.7. A specially crafted XMI file can lead to remote code execution.

Carl Hurd Follow

Originally disclosed on Cisco Talos

High 8.1 View original

Multiple heap-based buffer overflow vulnerabilities exists in the XML Decompression DecodeTreeBlock 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 program trusts a length value from the input file and uses it in memory copy operations without checking if the destination buffer is large enough.

Impact

An attacker could execute arbitrary code by providing a malicious XMI file.

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 bugs in a program that decompresses XML files. When the program reads a malicious file, it can be tricked into writing more data than it has space for, which can crash the program or let an attacker 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.