Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. branca
  4. ›
  5. CVE-2020-35918

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

August 25, 2021 (updated June 13, 2023)

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

  • github.com/advisories/GHSA-c9rv-3jmq-527w
  • github.com/return/branca
  • github.com/return/branca/commit/7da3274bd99b05dce9c3f9b4b129d0145c71820b
  • github.com/return/branca/issues/24
  • github.com/tuupola/branca-spec/issues/22
  • nvd.nist.gov/vuln/detail/CVE-2020-35918
  • rustsec.org/advisories/RUSTSEC-2020-0075.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35918 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.10.0

Fixed versions

  • 0.10.0

Solution

Upgrade to version 0.10.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

cargo/branca/CVE-2020-35918.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.