CVE-2026-45041
8.7high
RustFS: Hard-coded RSA private key in license verifier permits arbitrary license forgery
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
RustFS is a distributed object storage system built in Rust. Prior to 1.0.0-beta.2, crates/appauth/src/token.rs ships a 2048-bit RSA private key as a string constant named TEST_PRIVATE_KEY and uses it in production via parse_license() to "verify" license tokens. Because the key is embedded in every published source release and binary, anyone who can read the repository or extract it from the binary can mint arbitrary license tokens (any subject, any expiration). When the license Cargo feature is enabled, this defeats the entire license-enforcement mechanism. This vulnerability is fixed in 1.0.0-beta.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rustfs rustfs | < 1.0.0-beta.2 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-45041 changed 2026-05-29 | CVE Terms of Use |
| NVD | CVE-2026-45041 changed 2026-06-17 | Public domain |