# CVE-2026-45041: RustFS: Hard-coded RSA private key in license verifier permits arbitrary license forgery

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-28T18:34:06.275Z
- Modified: 2026-06-17T10:51:38.470Z
- Weaknesses: CWE-321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- rustfs rustfs: < 1.0.0-beta.2

## References

- <https://github.com/rustfs/rustfs/security/advisories/GHSA-923g-jp7v-f97f> (exploit)

## Sources

- CVE List: [CVE-2026-45041](https://www.cve.org/CVERecord?id=CVE-2026-45041), CVE Terms of Use, modified 2026-05-29
- NVD: [CVE-2026-45041](https://nvd.nist.gov/vuln/detail/CVE-2026-45041), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-45041 · Whole record: https://cve.day/CVE-2026-45041.json · Rebuilt by cve.day 2026-11-25T22:59:23.008Z
