5.3

RUSTSEC-2026-0583: sad-rsa Crates.Io

Published
AliasesGHSA-3hj7-mch7-c7cc
Published 19-11-2026Last modified 20-11-2026

Vulnerability summary

RUSTSEC-2026-0583 is a medium (CVSS 5.3) vulnerability in sad-rsa Crates.Io.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (OSV · Crates.io), selected by version preference
EPSS scoreNot scoredRisk metrics not yet published.
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 19-11-2026
    PublishedVulnerability first disclosed.
  2. 20-11-2026
    Last modifiedVulnerability information updated.

Description

Panics during RSA private-key construction, validation, or re-encoding `RsaPrivateKey` private-key construction, validation, and serialization can panic across three classes of inputs, as well as when re-encoding certain valid keys: - `RsaPrivateKey::from_components` and PKCS#1 or PKCS#8 private-key decoding (DER or PEM) can panic during validation when a supplied factor equals 1, because `RsaPrivateKey::validate()` let a factor of 1 reach a later check that panicked. - `RsaPrivateKey::from_primes` and `RsaPrivateKey::from_p_q` can panic during construction when a supplied factor is 0, 1, or even. - Prime recovery in `RsaPrivateKey::from_components` can panic when the private exponent is 0. - For a key, including a valid one, whose first prime occupies more limbs than the second, `crt_coefficient`, `to_pkcs1_der`, `to_pkcs8_der`, and `serde` serialization can panic. An application that imports untrusted private keys or factors, or re-encodes such keys, can lose a worker, or the whole process when built with `panic = "abort"`. Public-key parsing is not affected. Fixed in 0.10.4, which rejects factors below 2, even factors, repeated factors, and a zero private exponent during prime recovery, and computes the CRT coefficient and re-encodes valid two-prime keys when the first prime occupies more limbs than the second. If you cannot upgrade to 0.10.4, isolate the entire import, construction, CRT calculation, or serialization in a separate process and treat an abnormal exit as an operation failure, or use `catch_unwind` around the entire operation when panics unwind.

CVSS metrics

1 score · 1 source · 1 version

EPSS trend

No EPSS score has been published for this record yet.

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Crates.Io1 product
  • sad-rsa≥ 0.0.0-0, < 0.10.4

1 vendor · 1 product

References

3 links