{"id":"CVE-2024-5658","aliases":["EUVD-2024-1994","GHSA-96qm-hwhp-2rm8"],"status":"published","title":"CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use","description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","severity":{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00588,"percentile":0.48398,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-287","CWE-303"],"published":"2024-06-06T10:32:07Z","modified":"2026-10-28T02:30:38Z","fixes":[{"ecosystem":"Packagist","package":"born05/craft-twofactorauthentication","fixed_in":["3.3.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"born05/craft-twofactorauthentication","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.4"}]}]},{"source":"osv","ecosystem":"Packagist","package":"born05/craft-twofactorauthentication","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.4"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","1.0.0","1.0.1","1.1.0","2.0.0","2.0.0-beta","2.0.0-beta.1","2.0.0-beta.10","2.0.0-beta.11","2.0.0-beta.12","2.0.0-beta.13","2.0.0-beta.14","2.0.0-beta.2","2.0.0-beta.3","2.0.0-beta.4","2.0.0-beta.5","2.0.0-beta.6","2.0.0-beta.7","2.0.0-beta.8","2.0.0-beta.9","2.0.1","2.1.0","2.1.0-beta.1","2.1.0-beta.2","2.1.1","2.1.2","2.10.0","2.10.1","2.11.0","2.11.1","2.2.0","2.3.0","2.4.0","2.5.0","2.6.0","2.6.1","2.6.2","2.6.3","2.7.0","2.7.0-beta.1","2.7.1","2.7.2","2.7.3","2.7.3.1","2.7.4","2.8.0","2.8.1","2.9.0","3.0.0","3.0.0-beta.1","3.0.1","3.1.0","3.2.0","3.2.1","3.3.0","3.3.1","3.3.2","3.3.3"]}],"products":[{"vendor":"born05","product":"craft_cms"},{"vendor":"born05","product":"craftcms plugin - two-factor authentication"},{"vendor":"born05","product":"two-factor_authentication"}],"references":[{"url":"https://github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20240202-02_CraftCMS_Plugin_Two-Factor_Authentication_TOTP_Valid_After_Use","tags":["third-party-advisory","x_transferred","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://plugins.craftcms.com/two-factor-authentication?craft4","tags":["product","x_transferred","Product","web"]},{"url":"https://github.com/born05/craft-twofactorauthentication/releases/tag/3.3.4","tags":["release-notes","x_transferred","Release Notes","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/06/2","tags":["x_transferred","Exploit","Mailing List","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5658","tags":["advisory"]},{"url":"https://github.com/born05/craft-twofactorauthentication/commit/89d2339463c0f3ee690e707d4bc8501360885289","tags":["web"]},{"url":"https://github.com/advisories/GHSA-96qm-hwhp-2rm8"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5658.json","tags":["advisory"]},{"url":"https://github.com/born05/craft-twofactorauthentication","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-5658","title":"CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use","description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","status":"published","published":"2024-06-06T10:32:07.239Z","modified":"2025-09-03T07:08:56.47Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-303"],"updated_at":"2026-11-02T14:34:01.630882Z"}],"euvd":[{"id":"EUVD-2024-1994","description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","status":"published","published":"2024-06-06T10:32:07Z","modified":"2025-09-03T07:08:56Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T20:31:48.3448Z"}],"ghsa":[{"id":"GHSA-96qm-hwhp-2rm8","title":"Improper Authentication in CraftCMS two factor authentication plugin","description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","status":"published","published":"2024-06-06T12:30:36Z","modified":"2024-06-10T20:21:44Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T14:37:54.624184Z"}],"nvd":[{"id":"CVE-2024-5658","description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","status":"published","published":"2024-06-06T11:15:49.573Z","modified":"2026-06-17T08:16:22.663Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-303","CWE-287"],"updated_at":"2026-11-02T14:10:04.111836Z"}],"osv":[{"id":"CVE-2024-5658","title":"CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use","description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","status":"published","published":"2024-06-06T10:32:07.239Z","modified":"2026-10-28T02:30:38.502473694Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-303"],"updated_at":"2026-11-02T15:44:44.777182Z"},{"id":"GHSA-96qm-hwhp-2rm8","title":"Improper Authentication in CraftCMS two factor authentication plugin","description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","status":"published","published":"2024-06-06T12:30:36Z","modified":"2024-06-10T20:55:45.422125Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T15:46:43.123867Z"}]}}
