CVE-2021-41265 Improper Authentication in Flask-AppBuilder

High 8.1 Published Updated

Attackers can bypass authentication to access protected REST API endpoints in Flask-AppBuilder when using non-database authentication types.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-41265?

CVE-2021-41265 is a high-severity authentication bypass vulnerability in dpgaspar Flask-AppBuilder, published on 9 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Flask-AppBuilder is a development framework built on top of Flask. Verions prior to 3.3.4 contain an improper authentication vulnerability in the REST API. The issue allows for a malicious actor with a carefully crafted request to successfully authenticate and gain access to existing protected REST API endpoints. This only affects non database authentication types and new REST API endpoints. Users should upgrade to Flask-AppBuilder 3.3.4 to receive a patch.

Weakness: CWE-287

Which versions are affected by CVE-2021-41265?

3 open source packages ship an affected version, including flask-appbuilder and Flask-AppBuilder. It affects 1 product.

PackageAffectedFixed in
flask-appbuilder PyPIAll versions3.3.4
flask-appbuilder PyPIAll versions3.3.4
Flask-AppBuilder PyPIAll versions3.3.4

Products include Dpgaspar Flask-Appbuilder.

How do I fix CVE-2021-41265?

Upgrade flask-appbuilder to 3.3.4 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2021-41265 being exploited?

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

Sources

Also known as GHSA-m3rf-7m4w-r66q, PYSEC-2021-851.

Is CVE-2021-41265 in your software?

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

Check your SBOMs for free