Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. fluentd
  4. ›
  5. CVE-2021-41186

CVE-2021-41186: Uncontrolled Resource Consumption

October 29, 2021 (updated November 3, 2021)

Fluentd collects events from various data sources and writes them to files to help unify logging infrastructure. The parser_apache2 plugin in Fluentd 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. 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).

References

  • github.com/fluent/fluentd/blob/master/CHANGELOG.md
  • github.com/fluent/fluentd/security/advisories/GHSA-hwhf-64mh-r662
  • github.com/github/securitylab-vulnerabilities/blob/52dc4a2a828c6dc24231967c2937ad92038184a9/vendor_reports/GHSL-2021-102-fluent-fluentd.md
  • nvd.nist.gov/vuln/detail/CVE-2021-41186

Code Behaviors & Features

Detect and mitigate CVE-2021-41186 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.14.14 up to 1.14.1

Fixed versions

  • 1.14.2

Solution

Upgrade to version 1.14.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

gem/fluentd/CVE-2021-41186.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:49 +0000.