CVE-2022-29185
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with an admin-level account, but needs a user to act. High risk of data exposure.
- Exploit odds
- 0.9% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.9% in the next 30 days (EPSS).
- Severity: 4.2 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.9% · EPSS, next 30 days
- Weakness
- CWE-203
- Record status
- Modified
Affected
- totp-rs Project totp-rs < 1.1.0
Attack profile CVSS 3.1 · 4.2
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- High
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-29185.md and follow it. Check whether this project is affected by CVE-2022-29185. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- 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/releases/tag/v1.1.0
- https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249
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
- https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249