{"answers":{"affected":"2 open source packages ship an affected version, including rustfs. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22042 exists.","fix":"Upgrade rustfs to 1.0.0-alpha.79 or later.","what":"CVE-2026-22042 is a medium-severity missing authorization vulnerability in rustfs, published on 8 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-22042 and fix it if it is affected.\n\nWhat it is: CVE-2026-22042 is a medium-severity missing authorization vulnerability in rustfs, published on 8 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22042 exists.\n\nAffected packages and fixed versions:\n- rustfs (crates.io): affected all versions; fixed in 1.0.0-alpha.79\n- rustfs (crates.io): affected all versions; fixed in 1.0.0-alpha.79\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-22042/ (Markdown: https://insights.sbomify.com/CVE-2026-22042/index.md)","id":"CVE-2026-22042","markdown":"https://insights.sbomify.com/CVE-2026-22042/index.md","name":"CVE-2026-22042","record":{"aliases":["GHSA-vcwh-pff9-64cc"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Distributed object storage","requires_auth":"low_privilege","summary":"Attackers with export-only permissions can import IAM data to modify users and policies, leading to privilege escalation in RustFS.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rustfs","vendor":"rustfs"}],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-285","name":"Improper Authorization"}],"description":"RustFS is a distributed object storage system built in Rust. Prior to version 1.0.0-alpha.79, he `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. Version 1.0.0-alpha.79 fixes the issue.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"RustFS has IAM Incorrect Authorization in ImportIam that Allows Privilege Escalation","id":"CVE-2026-22042","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"RustFS has IAM deny_only Short-Circuit that Allows Privilege Escalation via Service Account Minting","id":"CVE-2026-22043"},"packages":[{"ecosystem":"crates.io","fixed":["1.0.0-alpha.79"],"introduced":["0"],"last_affected":[],"package":"rustfs","purl":null,"source":"GHSA-vcwh-pff9-64cc"},{"ecosystem":"crates.io","fixed":["1.0.0-alpha.79"],"introduced":["0"],"last_affected":[],"package":"rustfs","purl":"pkg:cargo/rustfs","source":"GHSA-vcwh-pff9-64cc"}],"prev":{"headline":"loggingredactor converts non-string types to string types in logs","id":"CVE-2026-22041"},"products":["rustfs"],"published":"2026-01-08","related":[{"cvss_score":9.8,"headline":"RustFS has a gRPC Hardcoded Token Authentication Bypass","id":"CVE-2025-68926","kev_date_added":null,"published":"2025-12-30"},{"cvss_score":9.1,"headline":"Rust has Critical Stored XSS in Preview Modal, leading to Administrative Account Takeover","id":"CVE-2026-27822","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":8.8,"headline":"RustFS Path Traversal Vulnerability","id":"CVE-2025-68705","kev_date_added":null,"published":"2026-01-07"},{"cvss_score":8.3,"headline":"RustFS: Missing admin authorization on notification target endpoints allows unauthenticated configuration of event webhooks","id":"CVE-2026-40937","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":8.1,"headline":"RustFS's Missing Post Policy Validation leads to Arbitrary Object Write","id":"CVE-2026-27607","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":7.7,"headline":"RustFS sourceIp bypass via spoofed X-Forwarded-For/Real-IP headers","id":"CVE-2026-21862","kev_date_added":null,"published":"2026-02-03"},{"cvss_score":6.9,"headline":"RustFS Logs Sensitive Credentials in Plaintext","id":"CVE-2026-24762","kev_date_added":null,"published":"2026-02-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-08","vendors":["rustfs"]},"summary":"Attackers with export-only permissions can import IAM data to modify users and policies, leading to privilege escalation in RustFS.","url":"https://insights.sbomify.com/CVE-2026-22042/"}