MSA-2026-011

aws:SourceIp policy condition bypass via untrusted forwarding headers

Advisory IDMSA-2026-011
CVE ID CVE-2026-55820
CWE CWE-290
SeverityMedium
CVSS v4.0 Score5.3
CVSS v4.0 VectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Affected productMinIO AIStor
Affected versions>= RELEASE.2017-09-29T19-16-56Z, < RELEASE.2026-06-06T02-44-06Z
Fixed inRELEASE.2026-06-06T02-44-06Z
DisclosedOctober 22, 2026
Last updatedOctober 22, 2026

Description

MinIO AIStor evaluates the aws:SourceIp IAM and bucket policy condition against a client IP address derived from forwarded HTTP headers — X-Forwarded-For, X-Real-IP, and RFC 7239 Forwarded — without verifying that those headers were set by a trusted upstream proxy. Releases before RELEASE.2018-03-12T21-25-28Z read only X-Real-IP.

A caller who could reach the storage API could include an arbitrary IP address in a forwarded header. The server evaluated aws:SourceIp conditions against that forged address rather than the caller's actual network address. This applies to IAM policies, which authorize authenticated requests, and to bucket policies, which authorize anonymous requests.

The forged address defeats only the network-location test. The caller's own identity and permissions are unchanged, and every other part of the policy evaluation still applies, so what the issue grants is the ability to exercise existing permissions from a location the policy was written to exclude. The consequence that matters in practice is that an IP restriction cannot be relied on to contain a credential that has been compromised.

Impact

Attack prerequisites

  • Network access to the MinIO AIStor S3 or administrative API.
  • Valid credentials for any account in the deployment. No credentials are needed where a bucket policy grants anonymous access subject to an aws:SourceIp condition.
  • The targeted deployment must use aws:SourceIp conditions in IAM or bucket policies to restrict access by client IP address.

What an attacker can do

  • Forge the apparent source IP to satisfy an aws:SourceIp allow condition, reaching objects and operations that the policy grants only to callers within a permitted IP range — for example, a policy that restricts S3 access to a corporate network.
  • Forge the apparent source IP to avoid triggering an aws:SourceIp deny condition, bypassing an IP-based block policy.
  • Falsify the client address recorded for the request in the server's audit and API access records. Requests admitted through the forged address produce no AccessDenied entry.
  • Present a forged address to other server behavior keyed on the client address, including, from RELEASE.2026-03-17T21-25-16Z, per-address request rate limiting on the security-token endpoints.

The bypass does not expand the caller's permissions. Requests are still evaluated against the full policy set that applies to the request, and every restriction other than the network-location condition continues to apply, so the exposure is bounded by what that principal is already granted. It is widest where aws:SourceIp is the only condition on a broadly permissive statement, and narrow where the principal's other permissions are themselves narrow.

The significant consequence is therefore not a gain of privilege but a loss of containment: a deployment that uses an IP restriction as the control limiting what a leaked access key can do does not get that containment from this condition on an affected release. Operators who scope an aws:SourceIp condition over a broad grant should assess the issue against the full reach of that grant.

Patches

Fixed in: MinIO AIStor RELEASE.2026-06-06T02-44-06Z.

The release adds a trusted_upstream_proxies configuration option (env var MINIO_API_TRUSTED_UPSTREAM_PROXIES) that accepts a comma-separated list of CIDR ranges identifying known upstream load balancers and proxies. When configured, forwarded headers are honored only when the immediate TCP peer falls within the trusted set; the X-Forwarded-For chain is walked right-to-left and the first hop outside that set is used as the source IP.

Upgrading without configuring trusted_upstream_proxies preserves the pre-fix behavior for backward compatibility and does not close this vulnerability. Operators must set this option after upgrading:

  • Deployments behind a load balancer or reverse proxy: set trusted_upstream_proxies to the CIDR ranges of those proxies.
  • Deployments with no reverse proxy: set trusted_upstream_proxies to - to disable all forwarded-header trust and use the immediate TCP peer address directly.
  • Deployments with the SFTP or FTP service enabled: include 127.0.0.1 in trusted_upstream_proxies, using it in place of - where there is no reverse proxy. These services connect to the S3 API over the loopback interface and pass the client's address in X-Forwarded-For; without that entry, aws:SourceIp conditions are evaluated against 127.0.0.1 for their users.

Upgrade to MinIO AIStor RELEASE.2026-06-06T02-44-06Z or later, available from https://dl.min.io/aistor/minio/.

Workarounds

If upgrading is not immediately possible:

  • Apply network-layer controls (firewall rules, security groups) to enforce IP-based access restrictions at the perimeter, independent of the aws:SourceIp policy condition.
  • Configure the load balancer or proxy that accepts client connections to overwrite X-Forwarded-For with the connecting client's address, and to remove X-Real-IP and Forwarded, before requests reach MinIO AIStor, so callers cannot inject values into those headers. Proxies behind it must not replace that X-Forwarded-For value. On releases before RELEASE.2018-03-12T21-25-28Z, which read only X-Real-IP, set X-Real-IP to the connecting client's address in the same way instead.
  • On deployments running RELEASE.2025-03-27T23-09-45Z or later, an internal configuration variable can be set to disable X-Forwarded-For header processing specifically. This is a partial mitigation: X-Real-IP and RFC 7239 Forwarded remain trusted without proxy validation. Contact MinIO support for details. Do not combine it with the previous measure.

After upgrading, configure trusted_upstream_proxies as described in the Patches section above; upgrading alone does not close the vector.

Credits

Name Credit type Notes
Eren Akdag finder Independent report.
rz1027 finder Independent report.
jiuker remediation developer MinIO.
Klaus Post remediation reviewer MinIO.
Anis Eleuch remediation reviewer MinIO.

References

Revision history

Date Revision
2026-06-15 Private disclosure to MinIO customers
2026-06-17 CVE ID assigned (CVE-2026-55820)
2026-08-20 Impact clarified: the bypass defeats the network-location test only and grants no permission the caller does not already hold, so the exposure is bounded by the principal's existing grants. CVSS vulnerable-system impact metrics revised from High to Low and attack requirements from Present to None; score 7.6 (High) to 5.3 (Medium).
2026-10-19 Corrected the Description, the Impact, the Patches and the Workarounds, and included anonymous access in the attack prerequisites.
2026-10-22 Public disclosure