# CVE-2021-46878: An issue was discovered in Treasure Data Fluent Bit 1.7.1, erroneous parsing in flbpackmsgpacktojsonformat leads to type confusion bug that…

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-11T00:00:00.000Z
- Modified: 2026-09-08T08:47:32.543Z
- Also known as: BIT-FLUENT-BIT-2021-46878
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

An issue was discovered in Treasure Data Fluent Bit 1.7.1, erroneous parsing in flb_pack_msgpack_to_json_format leads to type confusion bug that interprets whatever is on the stack as msgpack maps and arrays, leading to use-after-free. This can be used by an attacker to craft a specially craft file and trick the victim opening it using the affect software, triggering use-after-free and execute arbitrary code on the target system.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- treasuredata fluent_bit: 1.7.1
- fluent-bit (Bitnami): from 1.7.1 before 1.7.2

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27742> (exploit, advisory, issue-tracking, patch, third-party-advisory)
- <https://github.com/fluent/fluent-bit/pull/3115> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-46878> (web)

## Sources

- CVE List: [CVE-2021-46878](https://www.cve.org/CVERecord?id=CVE-2021-46878), CVE Terms of Use, modified 2025-02-11
- NVD: [CVE-2021-46878](https://nvd.nist.gov/vuln/detail/CVE-2021-46878), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-FLUENT-BIT-2021-46878](https://osv.dev/vulnerability/BIT-FLUENT-BIT-2021-46878), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-46878 · Whole record: https://cve.day/CVE-2021-46878.json · Rebuilt by cve.day 2026-11-25T22:58:08.401Z
