CVE-2026-21862 RustFS sourceIp bypass via spoofed X-Forwarded-For/Real-IP headers

High 7.7 Published Updated

Attackers can bypass IP-based access controls in RustFS by spoofing X-Forwarded-For headers, allowing unauthorized access to resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-21862?

CVE-2026-21862 is a high-severity authentication bypass vulnerability in rustfs, published on 3 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

RustFS is a distributed object storage system built in Rust. Prior to version alpha.78, IP-based access control can be bypassed: get_condition_values trusts client-supplied X-Forwarded-For/X-Real-Ip without verifying a trusted proxy, so any reachable client can spoof aws:SourceIp and satisfy IP-allowlist policies. This issue has been patched in version alpha.78.

Weakness: CWE-290

Which versions are affected by CVE-2026-21862?

2 open source packages ship an affected version, including rustfs. It affects 1 product.

PackageAffectedFixed in
rustfs crates.ioAll versions1.0.0-alpha.78
rustfs crates.ioAll versions1.0.0-alpha.78

Products include Rustfs Rustfs.

How do I fix CVE-2026-21862?

Upgrade rustfs to 1.0.0-alpha.78 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-21862 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21862 exists.

Sources

Also known as GHSA-fc6g-2gcp-2qrq.

Is CVE-2026-21862 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free