# CVE-2026-21899: CryptoLib has an out-of-bounds read and crash vulnerability when decoding an empty Base64url string

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L`
- 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.34%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-10T00:11:18.877Z
- Modified: 2026-06-17T10:19:06.903Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

CryptoLib provides a software-only solution using the CCSDS Space Data Link Security Protocol - Extended Procedures (SDLS-EP) to secure communications between a spacecraft running the core Flight System (cFS) and a ground station. Prior to version 1.4.3, in base64urlDecode, padding-stripping dereferences input[inputLen - 1] before checking that inputLen > 0 or that input != NULL. For inputLen == 0, this becomes an OOB read at input[-1], potentially crashing the process. If input == NULL and inputLen == 0, it dereferences NULL - 1. This issue has been patched in version 1.4.3.

(As written by CVE List.)

## Affected

- nasa CryptoLib: < 1.4.3; before 1.4.3

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nasa/CryptoLib/security/advisories/GHSA-wc29-5hw7-mpj8> (exploit, vendor-advisory)
- <https://github.com/nasa/CryptoLib/releases/tag/v1.4.3> (release-notes)

## Sources

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

---

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