CVE-2026-22782
JSON

2.9low

RustFS RPC signature verification logs shared secret

Severity
2.9low CVSS:4.0 by GitHub_M
Exploit likelihood
0.52% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-333v-68xh-8mmq

Description

RustFS is a distributed object storage system built in Rust. From >= 1.0.0-alpha.1 to 1.0.0-alpha.79, 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. In crates/ecstore/src/rpc/http_auth.rs, the invalid signature branch logs sensitive data. 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. This vulnerability is fixed in 1.0.0-alpha.80.

Affected

Product or packageVersionsReported by
rustfs rustfs>= 1.0.0-alpha.1, < 1.0.0-alpha.80, 1.0.0CVE List, NVD
rustfs (crates.io)from 1.0.0-alpha.1 before 1.0.0-alpha.80GitHub Advisory Database

All scores

GitHub_M2.9low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-532

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

RustFS is a distributed object storage system built in Rust. From >= 1.0.0-alpha.1 to 1.0.0-alpha.79, 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. In crates/ecstore/src/rpc/http_auth.rs, the invalid signature branch logs sensitive data. 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. This vulnerability is fixed in 1.0.0-alpha.80.

GitHub Advisory Database
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
  1. Run RustFS with error logging enabled.
  2. 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"
    
  3. 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.
NVD (es)

RustFS es un sistema de almacenamiento de objetos distribuido construido en Rust. Desde &gt;= 1.0.0-alpha.1 hasta 1.0.0-alpha.79, las firmas RPC inválidas hacen que el servidor registre el secreto HMAC compartido (y la firma esperada), lo que expone el secreto a los lectores de registros y permite llamadas RPC falsificadas. En crates/ecstore/src/rpc/http_auth.rs, la rama de firma inválida registra datos sensibles. Esta línea de registro incluye secret y expected_signature, ambos derivados de la clave HMAC compartida. Cualquier solicitud firmada inválidamente activa esta ruta. La función es accesible desde los manejadores de solicitudes RPC y de administración. Esta vulnerabilidad está corregida en 1.0.0-alpha.80.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-22782 changed 2026-01-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-333v-68xh-8mmq changed 2026-02-03CC-BY-4.0
NVDCVE-2026-22782 changed 2026-06-17Public domain