Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-25128 — flask-appbuilder

🔴 CVSS 9.5 — Critical ✅ No Known Exploit CWE-287 OSV
9.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Flask-AppBuilder vulnerable to incorrect authentication when using auth type OpenID

Impact

When Flask-AppBuilder is set to AUTH_TYPE AUTH_OID, allows an attacker to forge an HTTP request, that could deceive the backend into using any requested OpenID service. This vulnerability could grant an attacker unauthorised privilege access if a custom OpenID service is deployed by the attacker and accessible by the backend.

This vulnerability is only exploitable when the application is using the old (deprecated 10 years ago) OpenID 2.0 authorization protocol (which is very different from the popular OIDC - Open ID Connect - popular protocol used today). Currently, this protocol is regarded as legacy, with significantly reduced usage and not supported for several years by major authorization providers.

Patches

Upgrade to Flask-AppBuilder 4.3.11

Workarounds

If upgrade is not possible add the following to your config:

```

from flask import flash, redirect

from flask_appbuilder import expose

from flask_appbuilder.security.sqla.manager import SecurityManager

from flask_appbuilder.security.views import AuthOIDView

from flask_appbuilder.security.forms import LoginForm_oid

basedir = os.path.abspath(os.path.dirname(__file__))

class FixedOIDView(AuthOIDView):

@expose("/login/", methods=["GET" , "POST"])

def login(self, flag=True):

form = LoginForm_oid()

if form.validate_on_submit():

identity_url = None

for provider in self.appbuilder.sm.openid_providers:

if provider.get("url") == form.openid.data:

identity_url = form.openid.data

if identity_url is None:

flash(self.invalid_login_message, "warning")

return redirect(self.appbuilder.get_url_for_login)

return super().login(flag=flag)

class FixedSecurityManager(SecurityManager):

authoidview = FixedOIDView

FAB_SECURITY_MANAGER_CLASS = "config.FixedSecurityManager"

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: None.

Weakness class

CVE-2024-25128 is classified as CWE-287: Improper Authentication. The identity of the caller is not established correctly, so an attacker can act as another user.

Affected software

CVE-2024-25128 is recorded against 1 package.

  • flask-appbuilder (fixed in 4.3.11)

Timeline and source

Published on 28 February 2024 and last revised on 1 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)

Other advisories for this package

flask-appbuilder has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-287: Improper Authentication) in other software:

CVE-2024-25128 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity CRITICAL
CVSS Score 9.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CWE CWE-287
Public Exploit ✅ No
Source OSV
Published 2024-02-28
Updated 2026-08-20
Modified 2026-07-01

Affected Packages

Software From version Fixed in
flask-appbuilder 4.3.11

Exploit Protection

Are you running flask-appbuilder?

CVE-2024-25128 carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2024-25128 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024