CVE-2024-5658
CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.8
CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
- Record
CVE-2024-5658- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-303
- Updated
- 2026-11-02
EUVDEUVD-2024-1994
4.8
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
- Record
EUVD-2024-1994- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-96qm-hwhp-2rm8
4.8
Improper Authentication in CraftCMS two factor authentication plugin
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
- Record
GHSA-96qm-hwhp-2rm8- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-287
- Updated
- 2026-11-02
NVD
4.8
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
- Record
CVE-2024-5658- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-303, CWE-287
- Updated
- 2026-11-02
OSV
4.8
CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
- Record
CVE-2024-5658- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-303
- Updated
- 2026-11-02
OSVGHSA-96qm-hwhp-2rm8
4.8
Improper Authentication in CraftCMS two factor authentication plugin
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
- Record
GHSA-96qm-hwhp-2rm8- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-287
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
born05/craft-twofactorauthenticationPackagist |
before 3.3.4 | 3.3.4 |
born05/craft-twofactorauthenticationPackagist |
before 3.3.4, plus listed versions 0.0.10.0.20.0.30.0.40.0.5 Show 45 moreShow less0.0.61.0.01.0.11.1.02.0.02.0.0-beta2.0.0-beta.12.0.0-beta.102.0.0-beta.112.0.0-beta.122.0.0-beta.132.0.0-beta.142.0.0-beta.22.0.0-beta.32.0.0-beta.42.0.0-beta.52.0.0-beta.62.0.0-beta.72.0.0-beta.82.0.0-beta.92.0.12.1.02.1.0-beta.12.1.0-beta.22.1.12.1.22.10.02.10.12.11.02.11.12.2.02.3.02.4.02.5.02.6.02.6.12.6.22.6.32.7.02.7.0-beta.12.7.12.7.22.7.32.7.3.12.7.4 |
3.3.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-5658 is a medium vulnerability (CVSS 4.8) in Born05 Craftcms Plugin - Two-factor Authentication, published June 6, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.59%, the 48th percentile. Fixed in born05/craft-twofactorauthentication 3.3.4.
References
github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20240202-02_CraftCMS_Plugin_Two-Factor_Authentication_TOTP_Valid_After_Use
plugins.craftcms.com/two-factor-authentication?craft4
github.com/born05/craft-twofactorauthentication/releases/tag/3.3.4
openwall.com/lists/oss-security/2024/06/06/2
nvd.nist.gov/vuln/detail/CVE-2024-5658
github.com/born05/craft-twofactorauthentication/commit/89d2339463c0f3ee690e707d4bc8501360885289
github.com/advisories/GHSA-96qm-hwhp-2rm8
github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5658.json
github.com/born05/craft-twofactorauthentication
Left out here: 13 versions. The JSON record has them.