CVE-2026-61674
Description
A flaw was found in Fluent Bit. A stack-based buffer overflow exists in the forward output plugin due to insufficient bounds checking on server responses during connection handshakes. A remote attacker controlling or impersonating a destination server can exploit this vulnerability by sending an oversized response, potentially leading to arbitrary code execution or a Denial of Service (DoS).
Statement
A critical vulnerability was found in Fluent Bit, which is shipped in Red Hat's community-supported Fedora and EPEL fluent-bit packages. During the out_forward plugin's Secure Forward handshake, the secure_forward_pong handler copies the server-supplied PONG reason string into a fixed 32-byte stack buffer using memcpy without validating its MessagePack type or length. A remote attacker who controls or can impersonate (be on-path to) an out_forward Secure Forward destination configured with Shared_Key or Empty_Shared_Key can send an oversized reason during the first handshake and overwrite stack control data. On builds with stack protections this causes reliable termination of the Fluent Bit process (remote denial of service); on builds without a stack canary, or where the canary is disclosed, it permits remote code execution as the Fluent Bit process user. When the opt-in --supervisor mode is used, fork-only respawns preserve the stack canary and address-space layout, allowing repeated crash-or-survive probes that can support code execution even on hardened builds; ordinary exec-based or service-manager restarts re-randomize that state. Within the Red Hat portfolio, only the community-supported Fedora and EPEL fluent-bit packages are in scope; no Red Hat-managed product is affected, and a fix is being pursued through the community maintainers under a delegated resolution. Red Hat's CVSS v3.1 score of 8.1 reflects the high attack complexity of requiring control or impersonation of the forward destination, whereas the upstream CVEORG record scores this flaw 9.2 (critical) under CVSS v4.0.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. The upstream project has fixed this issue in Fluent Bit 5.0.8; updating to a fluent-bit package that includes this or a later version resolves the vulnerability, and a fix for the Fedora and EPEL packages is being pursued with the community maintainers.
Understanding the Weakness (CWE)
Integrity,Confidentiality,Availability
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of the product's implicit security policy. This can often be used to subvert any other security service.
Availability
Technical Impact: Modify Memory; DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU)
Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the product into an infinite loop.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.