What’s Vulnerable › Vulnerabilities
CVE-2026-45041: RustFS: Hard-coded RSA private key in license verifier permits arbitrary license forgery
- Severity: high (CVSS 8.7 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-28 · updated 2026-06-17
- Weakness: CWE-321
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 products
- rustfs: before 1.0.0-beta.2
References
- https://github.com/rustfs/rustfs/security/advisories/GHSA-923g-jp7v-f97f
- https://github.com/rustfs/rustfs/security/advisories/GHSA-923g-jp7v-f97f
Get alerted when CVE-2026-45041 or the next vulnerability affects your stack