# Improper Authentication in CraftCMS two factor authentication plugin

Advisory record · `GHSA-96qm-hwhp-2rm8`

- **Identifiers:** `GHSA-96qm-hwhp-2rm8` · `CVE-2024-5658` · `PKSA-zkn8-21sc-gvsj`
- **State:** Confirmed
- **Severity:** CVSS 4.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-287](https://cwe.mitre.org/data/definitions/287.html) · [CWE-303](https://cwe.mitre.org/data/definitions/303.html)
- **Tags:** [Authentication bypass](https://agentprime.io/advisories/tag/auth-bypass.md)
- **Published:** 6 Jun 2024
- **Updated:** 10 Jun 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Jun 2024, 12:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `born05/craft-twofactorauthentication` (Packagist): affected `<3.3.4`; fixed in `3.3.4`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The born05/craft-twofactorauthentication plugin for Craft CMS, versions before 3.3.4, allows a TOTP token to be reused multiple times within its validity period. An attacker who already has a user's password, or who can capture a valid one-time code, could replay that code to log in again before it expires. Upgrade to version 3.3.4 or later. The source gives few other details.

Written 4 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.8 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`, from CNA (sba-research)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0059, the 49th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:29 UTC: First seen by agentprime
- 31 Oct 2026, 14:29 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-96qm-hwhp-2rm8)

## Sources

- [GitHub Advisory Database: GHSA-96qm-hwhp-2rm8](https://github.com/advisories/GHSA-96qm-hwhp-2rm8)
- [OSV: GHSA-96qm-hwhp-2rm8](https://osv.dev/vulnerability/GHSA-96qm-hwhp-2rm8)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5658>
- <https://github.com/born05/craft-twofactorauthentication/commit/89d2339463c0f3ee690e707d4bc8501360885289>
- <https://github.com/born05/craft-twofactorauthentication>
- <https://github.com/born05/craft-twofactorauthentication/releases/tag/3.3.4>
- <https://github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20240202-02_CraftCMS_Plugin_Two-Factor_Authentication_TOTP_Valid_After_Use>
- <https://plugins.craftcms.com/two-factor-authentication?craft4>
- <http://www.openwall.com/lists/oss-security/2024/06/06/2>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-96qm-hwhp-2rm8>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-96qm-hwhp-2rm8/>. Everything for agents: <https://agentprime.io/llms.txt>.
