Skip to content
Memory corruption Write-up Advanced

Linguistic Lumberjack: Attacking Cloud Services via Logging Endpoints (Fluent Bit - CVE-2024-4323)

Fluent Bit's built-in HTTP monitoring API did not validate the data types of values in the inputs array of requests to the traces endpoint, treating them as strings. An attacker able to reach the endpoint could send non-string values to cause memory corruption, leading to denial of service, disclosure of adjacent memory, and potentially remote code execution.

Jimi Sebree Follow

Published on tenable.com

Subscribe

Jimi Sebree (@DinoBytes), on tenable.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The traces endpoint assumed every entry in the inputs array was a string and used the raw value as a length, so non-string values produced out-of-bounds reads and writes.

Impact

The researchers reliably caused denial of service and occasionally retrieved partial secrets from adjacent memory, while remote code execution is possible but depends on host architecture and operating system and is difficult to achieve reliably.

What the attacker needed

Network access to the monitoring API; traces endpoint reachable

The fix

The issue was fixed by validating the data types of values in the inputs array, and users should upgrade or restrict access to the monitoring API.

How it was found

  1. Reach the Fluent Bit monitoring API on its HTTP port.
  2. Send a request to the traces endpoint with a JSON body containing an inputs array.
  3. Place a non-string value such as a large integer in that array.
  4. Observe the service crash or memory contents returned in the response.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Fluent Bit is a tool that collects and ships log data, and it runs a small web server so administrators can check on it. That web server accepted a list of names but never checked they were actually text, so sending numbers instead confused the program's memory handling. This could crash the service or leak nearby memory contents back to whoever sent the request.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Jimi Sebree

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.