CVE-2026-21868: FlagForgeCTF flagForge · ReDoS
Affects FlagForgeCTF flagForgeSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 2.3.3 soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.3.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade flagForge and flagforgectf/flagForge to 2.3.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| FlagForgeCTFflagForge | Affected
| Fixed in
|
GitHubflagforgectf/flagForgepkg:github/flagforgectf/flagForgeOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade FlagForgeCTF instances to version 2.3.3 or later immediately to apply the official fix that properly escapes user input in regex construction. 2. Until patching is possible, implement Web Application Firewall (WAF) rules specifically designed to detect and block HTTP requests containing regex meta-characters (e.g., *, +, ?, {, }, (, ), [, ], |, ^, $, ., \) in the URL path, particularly targeting the /api/user/[username] endpoint. 3. Employ input validation and sanitization on the username parameter to reject or escape regex meta-characters before processing. 4. Monitor server CPU usage and application logs for unusual spikes or repeated requests containing suspicious patterns indicative of ReDoS attempts. 5. Restrict public access to the FlagForgeCTF platform where feasible, limiting exposure to trusted networks or VPNs. 6. Educate developers and administrators on the risks of dynamic regex construction from untrusted input and encourage secure coding practices. 7. Consider rate limiting or request throttling on the vulnerable API endpoint to reduce the impact of potential abuse. 8. Conduct regular security assessments and penetration tests focusing on input validation and denial of service vectors.
Description
Flag Forge is a Capture The Flag (CTF) platform. Versions 2.3.2 and below have a Regular Expression Denial of Service (ReDoS) vulnerability in the user profile API endpoint (/api/user/[username]). The application constructs a regular expression dynamically using unescaped user input (the username parameter). An attacker can exploit this by sending a specially crafted username containing regex meta-characters (e.g., deeply nested groups or quantifiers), causing the MongoDB regex engine to consume excessive CPU resources. This can lead to Denial of Service for other users. The issue is fixed in version 2.3.3. To workaround this issue, implement a Web Application Firewall (WAF) rule to block requests containing regex meta-characters in the URL path.