# CVE-2020-35918: Unexpected panic when decoding tokens in branca

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/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): 0.47%, higher than 42% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-11-29T12:00:00.000Z
- Modified: 2026-06-17T03:14:36.237Z
- Also known as: GHSA-c9rv-3jmq-527w, RUSTSEC-2020-0075
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

An issue was discovered in the branca crate before 0.10.0 for Rust. Decoding tokens (with invalid base62 data) can panic.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- branca (crates.io): before 0.10.0; from 0.0.0-0 before 0.10.0
- hakobaito branca: before 0.10.0

## Every score

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

## References

- <https://rustsec.org/advisories/RUSTSEC-2020-0075.html> (exploit, advisory, third-party-advisory, web)
- <https://github.com/return/branca/issues/24> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <https://github.com/tuupola/branca-spec/issues/22> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35918> (advisory)
- <https://github.com/return/branca/commit/7da3274bd99b05dce9c3f9b4b129d0145c71820b> (web)
- <https://github.com/return/branca> (package)
- <https://crates.io/crates/branca> (package)

## Sources

- CVE List: [CVE-2020-35918](https://www.cve.org/CVERecord?id=CVE-2020-35918), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c9rv-3jmq-527w](https://github.com/advisories/GHSA-c9rv-3jmq-527w), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2020-0075](https://rustsec.org/advisories/RUSTSEC-2020-0075.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2020-35918](https://nvd.nist.gov/vuln/detail/CVE-2020-35918), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-35918 · Whole record: https://cve.day/CVE-2020-35918.json · Rebuilt by cve.day 2026-11-25T22:57:56.654Z
