{"id":"RUSTSEC-2022-0018","revision":"91a7c1e1ad5341ada1550263e326ca23","records":[{"revision":"91a7c1e1ad5341ada1550263e326ca23","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2022-0018","aliases":["CVE-2022-29185","GHSA-8vxv-2g8p-2249"],"title":"Timing attack","description":"Affecting versions did not compare tokens in constant time, which could make it possible for an attacker to guess the 2fa token of a user.\n\nThis has been fixed by using using the crate constant_time_eq for comparison.","state":0,"publishedAt":"2022-05-09T12:00:00+00:00","modifiedAt":"2026-10-12T18:00:03.4070149+00:00","affected":[{"ecosystem":"crates.io","name":"totp-rs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"1.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N","score":null,"severity":null}],"references":["https://crates.io/crates/totp-rs","https://rustsec.org/advisories/RUSTSEC-2022-0018.html","https://github.com/constantoine/totp-rs/issues/13"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2022-0018","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2022-0018","identifiers":["RUSTSEC-2022-0018","CVE-2022-29185","GHSA-8vxv-2g8p-2249"]},"retained":false,"historicalAffected":[]}],"coverage":[]}