CVE-2022-24880
MEDIUM 5.3CVSS 3.1Potential Captcha Validate Bypass in flask-session-captcha
flask-session-captcha is a package which allows users to extend Flask by adding an image based captcha stored in a server side session. In versions prior to 1.2.1, he captcha.validate() function would return None if passed no value (e.g. by submitting an having an empty form). If implementing users were checking the return value to be False, the captcha verification check could be bypassed. Version 1.2.1 fixes the issue. Users can workaround the issue by not explicitly checking that the value is False. Checking the return value less explicitly should still work.
- Published
- 25 Apr 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-253CWE-394CWE-754
- Also known as
- GHSA-7r87-cj48-wj45PYSEC-2022-193
- Sources
- NVDJSONOSV GHSA-7r87-cj48-wj45JSONOSV PYSEC-2022-193JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | flask-session-captcha_project | flask-session-captchacpe:2.3:a:flask-session-captcha_project:flask-session-captcha:*:*:*:*:*:*:*:* |
< 1.2.1 | 1.2.1 |
| OSV | PyPI | flask-session-captcha | < 1.2.1 | 1.2.1 |
References
- https://github.com/Tethik/flask-session-captcha/commit/2811ae23a38d33b620fb7a07de8837c6d65c13e4 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/Tethik/flask-session-captcha/pull/27 · Patch, Third Party Advisory, WEB
- https://github.com/Tethik/flask-session-captcha/releases/tag/v1.2.1 · Release Notes, Third Party Advisory, WEB
- https://github.com/Tethik/flask-session-captcha/security/advisories/GHSA-7r87-cj48-wj45 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-24880 · ADVISORY
- https://github.com/Tethik/flask-session-captcha · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-session-captcha/PYSEC-2022-193.yaml · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 Apr 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Apr 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Apr 2022)