CVE-2026-45041CWE-321

RustFS: Hard-coded RSA private key in license verifier permits arbitrary license forgery

High · published May 28, 2026

CVSS v4.0
8.7
EPSS
0%
Percentile
33.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS
0.00406 · 33.7th percentile
Weakness
CWE-321 · Use of Hard-coded Cryptographic Key
Published
2026-05-28T18:34Z
EPSS history
Timeline
  • 28 MAY 18:34Z
    RustFS: Hard-coded RSA private key in license verifier permits arbitrary license forgery
    cvelistv5