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

AnyCubic Chitubox AnyCubic Plugin readDatHeadVec heap-based buffer overflow vulnerability

A heap-based buffer overflow exists in the readDatHeadVec function of the AnyCubic Chitubox plugin due to a 32-bit integer overflow when calculating the size of a vector. An attacker can provide a malicious GF file to trigger the overflow, potentially leading to code execution.

Carl Hurd Follow

Originally disclosed on Cisco Talos

High 7.8 View original

A heap-based buffer overflow vulnerability exists in the readDatHeadVec functionality of AnyCubic Chitubox AnyCubic Plugin 1.0.0. A specially-crafted GF file can lead to a heap buffer overflow.

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

Likely a 32-bit integer overflow in the multiplication used to size a vector, while a later 64-bit multiplication determines the amount of data read, causing a heap buffer overflow.

Impact

An attacker could exploit this to cause a heap buffer overflow, potentially leading to code execution with the privileges of the user running the plugin.

What the attacker needed

Victim opens a malicious GF 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 conversion plugin. When the plugin reads a specially crafted file, it miscalculates how much memory to allocate, then writes more data than fits, 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.