# CVE-2021-25903: Null pointer deference in cache

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.41%, higher than 73% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-01T12:00:00.000Z
- Modified: 2026-06-17T03:42:33.077Z
- Also known as: GHSA-gh87-6jr3-8q47, RUSTSEC-2021-0006
- Weaknesses: CWE-476
- Assigned by: mitre

## Description

An issue was discovered in the cache crate through 2021-01-01 for Rust. A raw pointer is dereferenced.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cache (crates.io): up to 0.1.0; from 0.0.0-0
- cache_project cache: up to 0.2.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0006.html> (exploit, advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25903> (advisory)
- <https://github.com/krl/cache/issues/2> (report, web)
- <https://github.com/krl/cache> (package)
- <https://crates.io/crates/cache> (package)

## Sources

- CVE List: [CVE-2021-25903](https://www.cve.org/CVERecord?id=CVE-2021-25903), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-gh87-6jr3-8q47](https://github.com/advisories/GHSA-gh87-6jr3-8q47), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0006](https://rustsec.org/advisories/RUSTSEC-2021-0006.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-25903](https://nvd.nist.gov/vuln/detail/CVE-2021-25903), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25903 · Whole record: https://cve.day/CVE-2021-25903.json · Rebuilt by cve.day 2026-11-25T22:57:59.724Z
