{"id":"CVE-2022-29185","revision":"9a3980aa577648c9991baa2ade565c32","records":[{"revision":"9a3980aa577648c9991baa2ade565c32","observedAt":"2026-10-24T20:17:18.289+00:00","statement":{"source":"nvd","id":"CVE-2022-29185","aliases":[],"title":"totp-rs is a Rust library that permits the creation of 2FA authentification tokens per time-based one-time password (TOTP). Prior to version 1.1.0, token comparison was not constant time, and could theorically be used to guess value of an T…","description":"totp-rs is a Rust library that permits the creation of 2FA authentification tokens per time-based one-time password (TOTP). Prior to version 1.1.0, token comparison was not constant time, and could theorically be used to guess value of an TOTP token, and thus reuse it in the same time window. The attacker would have to know the password beforehand nonetheless. Starting with patched version 1.1.0, the library uses constant-time comparison. There are currently no known workarounds.","state":0,"publishedAt":"2022-05-20T20:15:10.14+00:00","modifiedAt":"2026-06-17T04:39:46.097+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N","score":4.2,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.4,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","score":3.5,"severity":"LOW"}],"references":["https://github.com/constantoine/totp-rs/issues/13","https://github.com/constantoine/totp-rs/releases/tag/v1.1.0","https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-29185","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-203","CWE-208"],"productCriteria":["cpe:2.3:a:totp-rs_project:totp-rs:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2022-05-20T20:15:10.140","lastModified":"2026-06-17T04:39:46.097"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2022-29185","identifiers":["CVE-2022-29185"]},"retained":false,"historicalAffected":[]}],"coverage":[]}