CVE-2026-22782: RustFS's RPC signature verification logs shared secret
Summary Invalid RPC signatures cause the server to log the shared HMAC secret (and expected signature), which exposes the secret to log readers and enables forged RPC calls. Details In crates/ecstore/src/rpc/httpauth.rs:115-122 , the invalid signature branch logs sensitive data: This log line includes secret and expectedsignature, both derived from the shared HMAC key.
Published Jan 16, 2026
Affected packages
rustfs
- Ecosystem
- Rust (crates.io)
- Affected
- >= 1.0.0-alpha.1, <= 1.0.0-alpha.79
- Fixed in
- 1.0.0-alpha.80
- Check
cargo tree -i rustfs
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Invalid RPC signatures cause the server to log the shared HMAC secret (and expected signature), which exposes the secret to log readers and enables forged RPC calls.
Details
In `crates/ecstore/src/rpc/http_auth.rs:115-122` , the invalid signature branch logs sensitive data:
if signature != expected_signature {
error!(
"verify_rpc_signature: Invalid signature: secret {}, url {}, method {}, timestamp {}, signature {}, expected_signature {}",
secret, url, method, timestamp, signature, expected_signature
);
return Err(std::io::Error::other("Invalid signature"));
}This log line includes secret and expected_signature, both derived from the shared HMAC key. Any invalidly signed request triggers this path. The function is reachable from RPC and admin request handlers.
PoC
- Run RustFS with error logging enabled.
- Send a request with an invalid signature: ``
ts=$(date +%s) curl -v \ -H "x-rustfs-timestamp: $ts" \ -H "x-rustfs-signature: invalid-signature" \ "http://localhost:9000/rustfs/rpc/read_file_stream?disk=foo&volume=bar&path=baz&offset=0&length=1"`` - Observed output: ``
HTTP 403 AccessDenied: Invalid signature verify_rpc_signature: Invalid signature: secret rustfsadmin, url /rustfs/rpc/read_file_stream?disk=foo&volume=bar&path=baz&offset=0&length=1, method GET, timestamp 1767852115, signature invalid-signature, expected_signature oisNxNRTb80GXf97s/PGdScJzu8QB9Oxs+uOwf8RiK8=``
Impact
- Exposes the shared RPC HMAC secret to log readers.
- Enables attackers with log access to forge valid RPC signatures and make unauthorized RPC calls.
Credited to rand-tech.
References
- https://github.com/rustfs/rustfs/security/advisories/GHSA-333v-68xh-8mmq
- https://github.com/rustfs/rustfs/commit/6b2eebee1d07399ef02c0863bd515b4412a5a560
- https://github.com/rustfs/rustfs/blob/9e162b6e9ebb874cc1d06a7b33bc4a05786578aa/crates/ecstore/src/rpc/http_auth.rs#L115-L122
- https://nvd.nist.gov/vuln/detail/CVE-2026-22782
- https://github.com/advisories/GHSA-333v-68xh-8mmq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesGHSA-mm2q-qcmx-gw4w
RustFS: ListServiceAccount authorizes against wrong admin action, enabling cross-user enumeration and root service account takeover
high7.4May 5, 2026CVE-2026-40937
RustFS: Missing admin authorization on notification target endpoints allows unauthenticated configuration of event webhooks
high8.3No fixApr 22, 2026CVE-2026-39360
RustFS has an authorization bypass in multipart UploadPartCopy enables cross-bucket object exfiltration
medium4.3No fixApr 8, 2026CVE-2026-27607
RustFS: Missing Post Policy Validation leads to Arbitrary Object Write
high8.1Feb 25, 2026CVE-2026-27822
Rust has Critical Stored XSS in Preview Modal, leading to Administrative Account Takeover
critical9.0Feb 25, 2026CVE-2026-21862
RustFS has SourceIp bypass via spoofed X-Forwarded-For/Real-IP headers
high7.7Feb 3, 2026
