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

Medium 5.3 Published Updated

Attackers can bypass captcha validation in flask-session-captcha by submitting empty forms, allowing automated abuse of protected endpoints.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24880?

CVE-2022-24880 is a medium-severity vulnerability in Tethik flask-session-captcha, published on 25 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-754, CWE-394, CWE-253

Which versions are affected by CVE-2022-24880?

3 open source packages ship an affected version, including flask-session-captcha. It affects 1 product.

PackageAffectedFixed in
flask-session-captcha PyPIAll versions1.2.1
flask-session-captcha PyPIAll versions1.2.1
flask-session-captcha PyPIAll versions1.2.1

Products include Flask-Session-Captcha Project Flask-Session-Captcha.

How do I fix CVE-2022-24880?

Upgrade flask-session-captcha to 1.2.1 or later.

Is CVE-2022-24880 being exploited?

There is no known exploitation of CVE-2022-24880 in the wild and no public exploit code.

Sources

Also known as GHSA-7r87-cj48-wj45, PYSEC-2022-193.

Is CVE-2022-24880 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free