RustFS
RustFS: ForAllValues/ForAnyValue negated string conditions are transposed, inverting IAM and bucket-policy decisions
RustFS is a distributed object storage system built in Rust. Prior to 1.0.0-beta.12, RustFS evaluates the ForAllValues: and ForAnyValue: set qualifiers with the negated string operators StringNotEquals, StringNotEqualsIgnoreCase, StringNotLike, ArnNotEquals, and ArnNotLike using each other's semantics because crates/policy/src/policy/function/string.rs negates the aggregate result after eval or eval_like instead of negating each request-value predicate before quantification. Partially overlapping policy and request value sets can therefore make an Allow condition grant access to an excluded principal or make a Deny guardrail fail, including policies based on jwt:groups and jwt:roles; absent keys also receive the opposite ForAllValues: and ForAnyValue: behavior. This issue is fixed in version 1.0.0-beta.12.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.0.0-beta.12
Fixed in 1.0.0-beta.12
Mitigation
Upgrade rustfs to 1.0.0-beta.12 or later.
References
- Vendor advisory github.com/rustfs/rustfs/security/advisories/G…
- Patch github.com/rustfs/rustfs/commit/92f83bfe155d8a…
- Release notes github.com/rustfs/rustfs/releases/tag/1.0.0-be…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.