Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2024-23722

CVE-2024-23722: Fluent Bit DOS Vulnerability

CVE-2024-23722 is a denial of service flaw in Treasuredata Fluent Bit caused by NULL pointer dereference. This vulnerability crashes the service and prevents log delivery. Learn about technical details, versions 2.1.8-2.2.1, and mitigation.

Published:

CVE-2024-23722 Overview

CVE-2024-23722 is a NULL pointer dereference vulnerability [CWE-476] affecting Fluent Bit versions 2.1.8 through 2.2.1. Attackers can trigger the flaw by sending an invalid HTTP payload with a Content-Type of x-www-form-urlencoded to the embedded HTTP server. The process crashes and does not restart automatically, interrupting log delivery for any pipeline relying on the affected instance.

Fluent Bit is a widely deployed log processor and forwarder used across Kubernetes clusters, cloud workloads, and observability stacks. A successful attack disrupts telemetry collection, which can blind detection and monitoring systems that depend on those logs.

Critical Impact

Remote, unauthenticated attackers can crash Fluent Bit with a single malformed HTTP request, causing log loss and observability gaps until the service is manually restarted.

Affected Products

  • Fluent Bit 2.1.8
  • Fluent Bit versions 2.1.9 through 2.2.0
  • Fluent Bit 2.2.1

Discovery Timeline

  • 2024-03-26 - CVE-2024-23722 published to NVD
  • 2025-04-30 - Last updated in NVD database

Technical Details for CVE-2024-23722

Vulnerability Analysis

The flaw resides in the HTTP input handling path of Fluent Bit. When the server receives a request advertising Content-Type: application/x-www-form-urlencoded, the parser attempts to process the body without fully validating its structure. A malformed or unexpected payload causes the parser to dereference a NULL pointer, producing a segmentation fault.

Fluent Bit does not include automatic recovery for this crash. Once the process terminates, log ingestion and forwarding stop until an operator or supervisor restarts the binary. In environments without process supervisors such as systemd restart policies or Kubernetes liveness probes, the outage persists indefinitely.

Root Cause

The root cause is missing input validation on the x-www-form-urlencoded request body before pointer access. The HTTP handler assumes a valid parsed structure exists and operates on it directly. When parsing fails or returns an empty structure, the downstream code reads from a NULL pointer instead of checking the return value.

This pattern matches [CWE-476: NULL Pointer Dereference], where the program assumes a non-NULL value without verification.

Attack Vector

Exploitation requires network access to a Fluent Bit HTTP input endpoint. No authentication, user interaction, or special privileges are needed. An attacker sends a single HTTP POST request with the x-www-form-urlencoded content type and a crafted invalid body. The Fluent Bit process crashes on receipt.

The attack is highly reliable, repeatable, and requires no exploit chaining. Each restart can be followed by an immediate re-crash, producing a sustained denial of service against the logging pipeline. Technical analysis is available in the Medium CVE-2024-23722 Analysis.

Detection Methods for CVE-2024-23722

Indicators of Compromise

  • Unexpected termination of the fluent-bit process with a segmentation fault signal in system logs.
  • HTTP POST requests to Fluent Bit input ports carrying Content-Type: application/x-www-form-urlencoded from unexpected sources.
  • Gaps in downstream log ingestion timestamps coinciding with inbound HTTP traffic to Fluent Bit.

Detection Strategies

  • Monitor process supervisor events for fluent-bit exits with non-zero status codes or SIGSEGV signals.
  • Inspect access logs and packet captures for malformed x-www-form-urlencoded payloads targeting Fluent Bit HTTP inputs.
  • Correlate Fluent Bit availability metrics with HTTP request patterns to identify crash-inducing traffic.

Monitoring Recommendations

  • Configure alerting on Fluent Bit container or service restarts and on prolonged downtime of log forwarders.
  • Track ingestion volume in downstream destinations such as Elasticsearch, Loki, or S3 and alert on sudden drops.
  • Enable network telemetry on the HTTP input port and review requests with unusual body structures.

How to Mitigate CVE-2024-23722

Immediate Actions Required

  • Upgrade Fluent Bit to version 2.2.2 or later, which contains the upstream fix.
  • Restrict network access to Fluent Bit HTTP input ports to trusted log producers only, using firewall rules or network policies.
  • Place Fluent Bit behind a process supervisor configured to restart the binary on failure, reducing the duration of any outage.

Patch Information

The Fluent Bit maintainers addressed the issue in version 2.2.2. Review the upstream changes in the GitHub Version Comparison between v2.2.1 and v2.2.2. Operators running 2.1.8 through 2.2.1 should plan an immediate upgrade and verify the running version with fluent-bit --version after deployment.

Workarounds

  • Disable the HTTP input plugin if it is not required for the deployment, removing the attack surface entirely.
  • Enforce strict ingress filtering so only authenticated and validated sources can reach the Fluent Bit HTTP listener.
  • Deploy a reverse proxy or web application firewall in front of Fluent Bit to reject malformed x-www-form-urlencoded payloads before they reach the process.
bash
# Verify the installed Fluent Bit version and upgrade if vulnerable
fluent-bit --version

# Example Kubernetes liveness probe to ensure rapid restart after a crash
# (add to the Fluent Bit container spec)
livenessProbe:
  httpGet:
    path: /api/v1/health
    port: 2020
  initialDelaySeconds: 10
  periodSeconds: 10
  failureThreshold: 3

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.