{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "2.0.0"
              },
              {
                "last_affected": "2.2.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "809e4df4719fa63841ff3f28175f9a09da31963a"
            },
            {
              "last_affected": "fe85fdf1e5561e9f04c1c80c72e894dcd7ea3ad7"
            },
            {
              "fixed": "d59bfa3578b0e5ac8dd3570038d123014372a81c"
            }
          ],
          "repo": "https://github.com/ctfd/ctfd",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "Incorrect username validation in the registration process of CTFd v2.0.0 - v2.2.2 allows an attacker to take over an arbitrary account if the username is known and emails are enabled on the CTFd instance. To exploit the vulnerability, one must register with a username identical to the victim's username, but with white space inserted before and/or after the username. This will register the account with the same username as the victim. After initiating a password reset for the new account, CTFd will reset the victim's account password due to the username collision.",
  "id": "CVE-2020-7245",
  "modified": "2026-03-14T13:51:57.677699479Z",
  "published": "2020-01-23T23:15:11.597Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CTFd/CTFd/pull/1218"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CTFd/CTFd/releases/tag/2.2.3"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}