rustfs
Affected
- introduced
0, fixed1.0.0-alpha.79(semver)
Fixed versions
1.0.0-alpha.79
Fix
- Fixed version
1.0.0-alpha.79cargo update -p rustfs --precise 1.0.0-alpha.79
Advisory
Also known as: CVE-2026-22042
RustFS has IAM Incorrect Authorization in ImportIam that Allows Privilege Escalation
Summary
The ImportIam admin API validates permissions using `ExportIAMAction` instead of `ImportIAMAction`, allowing a principal with *export-only* IAM permissions to perform *import* operations. Since importing IAM data performs privileged write actions (creating/updating users, groups, policies, and service accounts), this can lead to unauthorized IAM modification and privilege escalation.
---
Details
In ImportIam, the authorization check is implemented as follows:
validate_admin_request(
&req.headers,
&cred,
owner,
false,
vec![Action::AdminAction(AdminAction::ExportIAMAction)],
).await?;
However, this code resides in the Import IAM operation (struct ImportIam {}), which performs state-changing IAM writes.
The expected behavior is to validate against `AdminAction::ImportIAMAction` (or an equivalent import-specific admin action), not ExportIAMAction.
---
PoC
Prerequisites
Steps
AdminAction::ExportIAMAction
and without Import IAM privileges.
ImportIam::call), authenticating with the export-only credentials.Expected Result
Actual Result
Medium Basis: The source's own band: MODERATE
0, fixed 1.0.0-alpha.79 (semver)1.0.0-alpha.79
1.0.0-alpha.79cargo update -p rustfs --precise 1.0.0-alpha.79Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0