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

Medium 5.5 Published Updated

Attackers can cause a denial of service by sending invalid base62 data to the branca crate, which triggers a panic during token decoding.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-35918?

CVE-2020-35918 is a medium-severity denial of service vulnerability in n/a, published on 31 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Which versions are affected by CVE-2020-35918?

3 open source packages ship an affected version, including branca. It affects 1 product.

PackageAffectedFixed in
branca crates.ioAll versions0.10.0
branca crates.ioAll versions0.10.0
branca crates.ioFrom 0.0.0-00.10.0

Products include Hakobaito Branca.

How do I fix CVE-2020-35918?

Upgrade branca to 0.10.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2020-35918 being exploited?

There is no known exploitation of CVE-2020-35918 in the wild and no public exploit code.

Sources

Also known as GHSA-c9rv-3jmq-527w, RUSTSEC-2020-0075.

Is CVE-2020-35918 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free