# CVE-2026-21895: rsa crate has potential panic on a prime being equal to 1

- Priority: **Routine**
- Reason: Not severe (CVSS 2.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-08 · Modified: 2026-01-08
- Aliases: UBUNTU-CVE-2026-21895, DEBIAN-CVE-2026-21895, CGA-3wwp-73f3-65cp, CGA-4c6x-6969-rgxw, CGA-53px-7j9v-x865, CGA-64q6-jqv4-gwp2, CGA-675x-wqgm-987v, CGA-68fp-pjh3-gmpc, CGA-68mf-hcc7-pvgc, CGA-6mvq-g2w2-h22w, CGA-6p5r-5h5g-gv94, CGA-83g3-r5f4-rq5g, CGA-9c6f-gv8x-29rh, CGA-9mfh-4frp-j924, CGA-c8r8-q5pp-pxcf, CGA-hqcm-7fvv-phvr, CGA-hv3q-j74h-9m29, CGA-mm9f-5jp2-hf7v, CGA-pqv2-3qqv-r2qf, CGA-q29c-9x7h-qp6m, CGA-qh8q-hpp5-v7f3, CGA-rx72-wfwm-8qwm, CGA-v262-8xx8-jcc2, CGA-v6m6-2vf3-55fv, CGA-w7r2-5f5m-r48j, CGA-xh52-86vv-vfjh, openSUSE-SU-2026:10105-1, GHSA-9c48-w39g-hm26
- Record: https://cvemate.com/vulnerability/CVE-2026-21895 · JSON: https://cvemate.com/vulnerability/CVE-2026-21895/json

## Description

```text
The `rsa` crate is an RSA implementation written in rust. Prior to version 0.9.10, when creating a RSA private key from its components, the construction panics instead of returning an error when one of the primes is `1`. Version 0.9.10 fixes the issue.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.44%, percentile 39.997%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 25)

- chainguard atuin (Chainguard): \< 18.10.0-r1
- chainguard deno (Chainguard): \< 2.6.4-r1
- chainguard lychee (Chainguard): \< 0.22.0-r1
- chainguard qdrant (Chainguard): \< 1.16.3-r1
- chainguard sccache (Chainguard): \< 0.12.0-r1
- chainguard sqlx (Chainguard): \< 0.8.6-r2
- chainguard uv (Chainguard): All versions (No fix recorded) \| \< 0.9.27-r4
- chainguard vector (Chainguard): \< 0.55.0-r0
- chainguard yara-x (Chainguard): \< 1.10.0-r1
- chainguard zed (Chainguard): \< 0.218.6-r0 \| \< 0.217.4-r1
- wolfi atuin (Wolfi): \< 18.10.0-r1
- wolfi deno (Wolfi): \< 2.6.4-r1
- wolfi lychee (Wolfi): \< 0.22.0-r1
- wolfi qdrant (Wolfi): \< 1.16.3-r1
- wolfi sccache (Wolfi): \< 0.12.0-r1
- wolfi sqlx (Wolfi): \< 0.8.6-r2
- wolfi uv (Wolfi): All versions (No fix recorded) \| \< 0.9.27-r4
- wolfi vector (Wolfi): \< 0.55.0-r0
- wolfi yara-x (Wolfi): \< 1.10.0-r1
- wolfi zed (Wolfi): \< 0.218.6-r0 \| \< 0.217.4-r1

## References

- <https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26>
- <https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7>
- <https://ubuntu.com/security/CVE-2026-21895>
- <https://www.cve.org/CVERecord?id=CVE-2026-21895>
- <https://security-tracker.debian.org/tracker/CVE-2026-21895>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21895.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-21895>
- <https://www.suse.com/security/cve/CVE-2026-21895>
- <https://github.com/RustCrypto/RSA>

---

Data as of 2026-12-05T09:09:04.326Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
