{"id":"CVE-2020-35918","aliases":["EUVD-2021-1678","GHSA-c9rv-3jmq-527w","RUSTSEC-2020-0075"],"status":"published","title":"Unexpected panic when decoding tokens in branca","description":"An issue was discovered in the branca crate before 0.10.0 for Rust. Decoding tokens (with invalid base62 data) can panic.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00471,"percentile":0.41019,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2020-11-29T12:00:00Z","modified":"2026-10-20T10:53:24Z","fixes":[{"ecosystem":"crates.io","package":"branca","fixed_in":["0.10.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"branca","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"branca","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.10.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"branca","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.10.0"}]}]}],"products":[{"vendor":"hakobaito","product":"branca"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0075.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","advisory"]},{"url":"https://github.com/tuupola/branca-spec/issues/22","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/return/branca/issues/24","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35918","tags":["advisory"]},{"url":"https://github.com/return/branca/commit/7da3274bd99b05dce9c3f9b4b129d0145c71820b","tags":["web"]},{"url":"https://github.com/advisories/GHSA-c9rv-3jmq-527w"},{"url":"https://github.com/return/branca","tags":["package"]},{"url":"https://crates.io/crates/branca","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-35918","description":"An issue was discovered in the branca crate before 0.10.0 for Rust. Decoding tokens (with invalid base62 data) can panic.","status":"published","published":"2020-12-31T08:18:21Z","modified":"2024-08-04T17:16:13.176Z","updated_at":"2026-11-02T14:35:57.975444Z"}],"euvd":[{"id":"EUVD-2021-1678","description":"An issue was discovered in the branca crate before 0.10.0 for Rust. Decoding tokens (with invalid base62 data) can panic.","status":"published","published":"2020-12-31T08:18:21Z","modified":"2024-08-04T17:16:13Z","updated_at":"2026-11-03T03:07:04.595509Z"}],"ghsa":[{"id":"GHSA-c9rv-3jmq-527w","title":"Unexpected panic when decoding tokens in branca","description":"Prior to 0.10.0 it was possible to have both decoding functions panic unexpectedly, by supplying tokens with an incorrect base62 encoding.\nThe documentation stated that an error should have been reported instead.","status":"published","published":"2021-08-25T20:49:50Z","modified":"2023-06-13T17:09:35Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:53.654352Z"}],"nvd":[{"id":"CVE-2020-35918","description":"An issue was discovered in the branca crate before 0.10.0 for Rust. Decoding tokens (with invalid base62 data) can panic.","status":"published","published":"2020-12-31T09:15:15.88Z","modified":"2026-06-17T03:14:36.237Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.9,"vector":"AV:L/AC:L/Au:N/C:N/I:N/A:C","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:06:28.340168Z"}],"osv":[{"id":"CVE-2020-35918","description":"An issue was discovered in the branca crate before 0.10.0 for Rust. Decoding tokens (with invalid base62 data) can panic.","status":"published","published":"2020-12-31T09:15:15.88Z","modified":"2026-10-20T10:53:24.428169504Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:16.612899Z"},{"id":"GHSA-c9rv-3jmq-527w","title":"Unexpected panic when decoding tokens in branca","description":"Prior to 0.10.0 it was possible to have both decoding functions panic unexpectedly, by supplying tokens with an incorrect base62 encoding.\nThe documentation stated that an error should have been reported instead.","status":"published","published":"2021-08-25T20:49:50Z","modified":"2023-11-08T04:03:39.346637Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:44.927642Z"},{"id":"RUSTSEC-2020-0075","title":"Unexpected panic when decoding tokens","description":"Prior to `0.10.0` it was possible to have both decoding functions panic unexpectedly,\nby supplying tokens with an incorrect base62 encoding.\n\nThe documentation stated that an error should have been reported instead.","status":"published","published":"2020-11-29T12:00:00Z","modified":"2023-11-08T04:03:39.346637Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
