Skip to content

Server-Side Request Forgery (SSRF) via Placeholder Expansion in `out_http`

High
Watson1978 published GHSA-72f5-rr8c-r6gr Jun 26, 2026

Package

bundler fluentd (RubyGems)

Affected versions

<= 1.19.2

Patched versions

1.19.3

Description

The out_http output plugin allows the use of placeholders (such as ${tag}) in the endpoint configuration parameter.
It was discovered that if the placeholder value is derived from untrusted user input, an attacker can maliciously control the destination hostname of the outbound HTTP requests made by Fluentd.

Impact

This vulnerability allows for a Server-Side Request Forgery (SSRF) attack.
An unauthenticated attacker can force the Fluentd node to send HTTP requests to arbitrary internal services. This can lead to unauthorized access to internal APIs, data exfiltration, or the compromise of cloud metadata endpoints (e.g., AWS IMDS 169.254.169.254).

Patches

v1.19.3

Workarounds

If an immediate upgrade is not possible, users are strongly advised to apply the following mitigations:

  1. Avoid Dynamic Hostnames

    • Do not use the placeholder in the endpoint parameter as hostname.
  2. Restrict Network Access

    • Use firewall rules (e.g., iptables, AWS Security Groups) to block the Fluentd node from accessing sensitive internal IP addresses, specifically the cloud provider's metadata service and other internal microservices that Fluentd does not explicitly need to access.
  3. Restrict allowed hosts

    • Inject filter to accept allowed hosts in placeholders explicitly if possible.

Note regarding Path/Query manipulation via Placeholders

The security fix implemented for this advisory specifically validates the host component of the resolved URL to prevent redirection to arbitrary external servers.

Please be aware that Fluentd intentionally does not strictly sanitize or URI-encode URL metacharacters (such as ?, #, or /) within placeholders like ${tag}.
This is a design decision to preserve flexibility for users who legitimately rely on dynamic path construction or query parameters for internal routing.

While this means a manipulated tag could theoretically alter the requested path or query string on the same validated host, it does not constitute a valid SSRF vulnerability in this context for the following reasons:

  1. HTTP Method Constraint
    • The out_http plugin exclusively issues POST and PUT requests. It does not issue GET requests, rendering standard cloud metadata extraction attacks (e.g., against AWS IMDS or GCP Metadata) unfeasible, as those endpoints strictly require GET requests.
  2. Intended Design
    • Altering the path/query within the confines of the trusted target host is considered expected behavior when utilizing dynamic placeholders.

Users who incorporate ${tag} or other placeholders into their endpoint configuration should ensure they trust the source of their incoming tags, or use <filter> plugins to sanitize tags before routing if strict path enforcement is required in their specific environment.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L

CVE ID

CVE-2026-44161

Weaknesses

Server-Side Request Forgery (SSRF)

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. Learn more on MITRE.

Credits