{"schemaVersion":3,"id":"CVE-2021-46878","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-04-11T00:00:00.000Z","modified":"2025-02-11T21:01:09.004Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0035,"percentile":0.2719,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0035},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0035,"percentile":0.2719}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0035,"percentile":0.2719}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_3E650212D050F032","name":"Exploit Reference (bugs.chromium.org)","source":"reference","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27742","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type ('Type Confusion')","description":"The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/843.html"}],"affected":[{"vendor":"treasuredata","product":"fluent_bit","name":"fluent bit","label":"fluent_bit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.7.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.7.1","eol":{"isEol":true,"eolDate":null,"matchMethod":"name_exact","cycle":{"name":"1.7","label":"1.7","eolFrom":null,"isLts":false,"isMaintained":false,"latestVersion":"1.7.9"},"product":{"name":"fluent-bit","label":"Fluent Bit","category":"server-app"}},"hubHref":"/vendor/treasuredata/fluent_bit"}],"affectedCount":1,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27742","label":"bugs.chromium.org/p/oss-fuzz/issues/detail?id=27742","hostname":"bugs.chromium.org","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/fluent/fluent-bit/pull/3115","label":"github.com/fluent/fluent-bit/pull/3115","hostname":"github.com","tags":["Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46878","label":"nvd.nist.gov/vuln/detail/CVE-2021-46878","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-04-11T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-11T21:01:09.004Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T13:38:46.018Z","stale":false,"partial":false}}