{"cve":"CVE-2022-29185","nvd":{"published":"2022-05-20T20:15:10.140","modified":"2026-06-17T04:39:46.097","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.4},"cwes":["CWE-203","CWE-208"],"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","https://github.com/constantoine/totp-rs/issues/13","https://github.com/constantoine/totp-rs/releases/tag/v1.1.0"],"products":["totp-rs_project:totp-rs"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-29185","score":0.00863,"percentile":0.58621,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8vxv-2g8p-2249","url":"https://osv.dev/vulnerability/GHSA-8vxv-2g8p-2249","summary":"Observable Timing Discrepancy in totp-rs","modified":"2023-11-08T04:09:09.176539Z","packages":[{"ecosystem":"crates.io","name":"totp-rs","purl":"pkg:cargo/totp-rs","ranges":["<1.1.0"],"fixed":["1.1.0"]}]},{"id":"RUSTSEC-2022-0018","url":"https://osv.dev/vulnerability/RUSTSEC-2022-0018","summary":"Timing attack","modified":"2026-10-12T18:00:03.407014913Z","packages":[{"ecosystem":"crates.io","name":"totp-rs","purl":"pkg:cargo/totp-rs","ranges":[">=0.0.0-0 <1.1.0"],"fixed":["1.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}