# CVE-2022-24880: Potential Captcha Validate Bypass in flask-session-captcha

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Published: 2022-04-25T22:10:13.000Z
- Modified: 2026-06-17T04:32:43.140Z
- Also known as: GHSA-7r87-cj48-wj45, PYSEC-2022-193
- Weaknesses: CWE-253, CWE-394, CWE-754
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Tethik flask-session-captcha: < 1.2.1
- flask-session-captcha (PyPI): before 1.2.1; before 2811ae23a38d33b620fb7a07de8837c6d65c13e4
- flask-session-captcha_project flask-session-captcha: before 1.2.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/Tethik/flask-session-captcha/security/advisories/GHSA-7r87-cj48-wj45> (advisory, third-party-advisory, web)
- <https://github.com/Tethik/flask-session-captcha/pull/27> (patch, third-party-advisory, web)
- <https://github.com/Tethik/flask-session-captcha/commit/2811ae23a38d33b620fb7a07de8837c6d65c13e4> (fix, patch, third-party-advisory, web)
- <https://github.com/Tethik/flask-session-captcha/releases/tag/v1.2.1> (release-notes, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-24880](https://www.cve.org/CVERecord?id=CVE-2022-24880), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-7r87-cj48-wj45](https://github.com/advisories/GHSA-7r87-cj48-wj45), CC-BY-4.0, modified 2025-02-21
- NVD: [CVE-2022-24880](https://nvd.nist.gov/vuln/detail/CVE-2022-24880), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-193](https://osv.dev/vulnerability/PYSEC-2022-193), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-24880 · Whole record: https://cve.day/CVE-2022-24880.json · Rebuilt by cve.day 2026-11-25T22:58:11.242Z
