Rust advisories / branca
Vulnerability MediumRUSTSEC-2020-0075 · branca
RUSTSEC-2020-0075: Unexpected panic when decoding tokens
Short answerA security vulnerability in the branca crate: Unexpected panic when decoding tokens. Medium severity (CVSS 5.5). Fixed in 0.10.0: update to a fixed version.
| Crate | branca |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.10.0. |
| Fixed in | 0.10.0 |
| Severity | Medium, CVSS 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Published | 2020-11-29 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2020-35918, GHSA-c9rv-3jmq-527w |
| Affected functions | branca::Branca::decode, branca::decode |
What to do
- See which version you have:
cargo tree -i branca(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p branca. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplebranca = "0.10.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Prior to 0.10.0 it was possible to have both decoding functions panic unexpectedly, by supplying tokens with an incorrect base62 encoding.
The documentation stated that an error should have been reported instead.
References
- Package: crates.io/crates/branca
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0075.html
- Report: github.com/return/branca/issues/24
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?