CVE-2021-46879 Memory corruption in n/a

High 7.8 Published Updated

A heap overflow in Fluent Bit allows attackers to execute arbitrary code by tricking users into opening a malicious file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-46879?

CVE-2021-46879 is a high-severity memory corruption vulnerability in n/a, published on 11 Apr 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An issue was discovered in Treasure Data Fluent Bit 1.7.1, a wrong variable is used to get the msgpack data resulting in a heap overflow in flb_msgpack_gelf_value_ext. An attacker can craft a malicious file and tick the victim to open the file with the software, triggering a heap overflow and execute arbitrary code on the target system.

Weakness: CWE-787

Which versions are affected by CVE-2021-46879?

1 open source package ship an affected version, including fluent-bit. It affects 1 product.

PackageAffectedFixed in
fluent-bit BitnamiFrom 1.7.11.7.2

Products include Treasuredata Fluent Bit.

How do I fix CVE-2021-46879?

Upgrade fluent-bit to 1.7.2 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-46879 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-46879 exists.

Sources

Also known as BIT-fluent-bit-2021-46879, GHSA-m8h6-32jj-7hxp.

Is CVE-2021-46879 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free