{"id":"CVE-2022-24880","published":"2022-04-25T22:10:13Z","modified":"2025-04-23T18:32:31Z","title":"Potential Captcha Validate Bypass in flask-session-captcha","vendor":"Tethik","product":"flask-session-captcha","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01206,"percentile":0.69068,"provenance":"source"},"cwes":[{"id":"CWE-253","name":"Incorrect Check of Function Return Value"},{"id":"CWE-394","name":"Unexpected Status Code or Return Value"},{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/Tethik/flask-session-captcha/security/advisories/GHSA-7r87-cj48-wj45","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Tethik/flask-session-captcha/pull/27","tags":["x_refsource_MISC"]},{"url":"https://github.com/Tethik/flask-session-captcha/commit/2811ae23a38d33b620fb7a07de8837c6d65c13e4","tags":["x_refsource_MISC"]},{"url":"https://github.com/Tethik/flask-session-captcha/releases/tag/v1.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":13.81},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"tethik","affectedVersions":[{"vendor":"Tethik","product":"flask-session-captcha","versions":["< 1.2.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:55:15.375455Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"flask-session-captcha","vulnerableRanges":["<1.2.1"],"patched":["1.2.1"],"from":["GHSA-7r87-cj48-wj45","PYSEC-2022-193"],"provenance":"source"}],"summary":{"text":"The flask-session-captcha package from Tethik has a flaw in its captcha.validate() function, which returns None rather than False when passed no value, such as from an empty form submission. An attacker with network access and no authentication or user interaction can bypass the captcha check, provided the implementing application tests the return value against False explicitly.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:21Z"},"euvd":{"id":"EUVD-2022-0105","exploited":false,"provenance":"source"}}