SecurityContext

CVE-2022-29185: totp-rs - Timing Attack

  • Cve: CVE-2022-29185
  • Name: totp-rs - Timing Attack
  • 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.
  • Impact: Attackers could potentially guess valid TOTP tokens within the same time window, risking unauthorized access.
  • Remediation: Update to version 1.1.0 or later, which uses constant-time comparison.
  • Vulnerability type: timing_attack
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.4
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00863
  • Epss percentile: 0.59515
  • Assignee: [email protected]
  • Published at: 2022-05-20T20:15:10Z
  • Age in days: 1649
  • Modified at: 2026-06-17T04:39:46Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-29185
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-203Observable Discrepancy

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/constantoine/totp-rs/issues/13Issue Tracking, Third Party Advisory
https://github.com/constantoine/totp-rs/releases/tag/v1.1.0Release Notes, Third Party Advisory
https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
totp-rs_project:totp-rs< 1.1.0nonvd/v1/products/totp-rs_project/totp-rs

Projects

RepositoryLink kindsIndexedUrl
constantoine/totp-rscommit, compare, issues, package, releases, security_advisoryyes/v1/repositories/constantoine/totp-rs

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts