CVE-2020-7245 in Ctfd
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 whi...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ctfd | Ctfd | ≥ 2.0.0, ≤ 2.2.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-7245 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-197109-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-01-23 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-640: CWE-640
Related attack patterns (CAPEC)
CAPEC-50 Password Recovery Exploitation via CWE-640
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
{ "executive_summary": "CVE-2020-7245 in CTFd v2.0.0 - v2.2.2 allows attackers to take over arbitrary accounts by registering with a username identical to the victim's, but with leading or trailing whitespace, if emails are enabled.", "attack_vector_detail": "The vulnerability arises from incorrect username validation during the registration process. An attacker can exploit this by registering with a username that matches a victim's username, but with whitespace added before or after it. This can lead to account takeover if the CTFd instance has email functionality enabled.", "affected_components": ["CTFd v2.0.0", "CTFd v2.0.1", "CTFd v2.0.2", "CTFd v2.0.3", "CTFd v2.0.4", "CTFd v2.0.5", "CTFd v2.0.6", "CTFd v2.0.7", "CTFd v2.0.8", "CTFd v2.0.9", "CTFd v2.1.0", "CTFd v2.1
Vulnerability 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 wi CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2020-7245?
{ "executive_summary": "CVE-2020-7245 in CTFd v2.0.0 - v2.2.2 allows attackers to take over arbitrary accounts by registering with a username identical to the victim's, but with leading or trailing whitespace, if emails are enabled.", "attack_vector_detail": "The vulnerability arises from incorrect username validation during the registration process. An attacker can exploit this by registering with a username that matches a victim's username, but with whitespace added before or after it. Thi
What is the CVSS score for CVE-2020-7245?
CVE-2020-7245 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.2%.
Is CVE-2020-7245 actively exploited?
No confirmed active exploitation of CVE-2020-7245 as of 2026-09-25.
How do I remediate CVE-2020-7245?
Priority: MEDIUM.
What systems are affected by CVE-2020-7245?
CVE-2020-7245 affects Ctfd Ctfd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ctfd","product":"Ctfd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.