Filebeat's HMAC Endpoint Trusted Its Payload Size
Filebeat's http_endpoint input is designed to receive events over HTTP. HMAC validation can verify that a request came from a trusted sender, but it does not limit how much memory the receiver needs before the signature check finishes. Elastic's November security update describes CVE-2026-139907 as uncontrolled resource consumption in that input.
The affected configuration has three parts. HMAC validation is enabled, the maximum body size is not explicitly restricted, and the listener is reachable by the attacker. A crafted payload can then make Filebeat consume available memory and stop processing or serving requests.
Why a trusted sender condition is not enough
HMAC is useful for authenticity and integrity. The receiver still has to read or buffer enough of the request to perform validation. If an untrusted network path can reach the listener, an attacker can send oversized data before the service has established the sender's legitimacy. The memory cost can occur in the HTTP layer rather than in the downstream event pipeline.
Elastic lists Filebeat 7.14.0 through 7.17.29, 8.0.0 through 8.19.25, and 9.0.0 through 9.5.6 as affected. The fixed releases are 8.19.26 and 9.5.7 in the advisory. The vulnerability is rated 7.5 for availability impact.
The exposed listener is the key asset fact
A Filebeat process that only ships local log files has no HTTP endpoint to attack through this bug. A process with an enabled http_endpoint input and a reachable bind address does. That distinction should drive inventory before scanning for product names.
Collect Filebeat configuration from managed hosts, containers, and Kubernetes agents. Record the input type, bind address, authentication setting, and max_body_bytes value. Compare it with network policy and load balancer rules. A listener behind a trusted webhook gateway may still be reachable from that gateway's network, so "internal" is not automatically safe.
When the service is at risk, inspect memory graphs, restarts, OOM kills, and HTTP error rates around unusual request bursts. Preserve proxy logs and packet metadata that can show source addresses and request sizes. Do not expect Filebeat's normal event logs to contain the full request body, and do not copy sensitive payloads into a ticket.
Upgrade and cap the body
Upgrade to 8.19.26, 9.5.7, or a later supported release. If an upgrade cannot happen immediately, set max_body_bytes to a value that matches the expected event size. Apply a reverse proxy limit as a second boundary. Restrict the endpoint to the sender network and monitor for oversized requests.
After the change, test with a payload just below the configured limit and one above it. Confirm that the service rejects the oversized request without a large memory increase. Then check that legitimate webhook traffic still passes HMAC validation. The patch and the limit solve related but different problems: one fixes the vulnerable processing path, and the other reduces the chance that a malformed or hostile request reaches it with unbounded size.
