CVE-2022-24880

Potential Captcha Validate Bypass in flask-session-captcha

State
Published
Severity
5.3 Medium
Published
Apr 25, 2022
Updated
Apr 23, 2025
Reserved
Feb 10, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NGitHub_M

Weaknesses

  • CWE-253 Incorrect Check of Function Return Value
  • CWE-394 Unexpected Status Code or Return Value
  • CWE-754 Improper Check for Unusual or Exceptional Conditions

Affected Products

ProductVersions
flask-session-captchaTethik
  • < 1.2.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.