CVE-2024-25128
Python vulnerability analysis and mitigation

Overview

Flask-AppBuilder, an application development framework built on top of Flask, contains a vulnerability (CVE-2024-25128) when configured with AUTH_TYPE AUTH_OID. The vulnerability was discovered and disclosed on February 28, 2024, affecting versions prior to 4.3.11. This security issue specifically impacts applications using the OpenID 2.0 authorization protocol, which is a legacy protocol deprecated about 10 years ago and distinct from the modern OIDC (OpenID Connect) protocol (GitHub Advisory).

Technical details

The vulnerability allows an attacker to forge HTTP requests that could deceive the backend into using any requested OpenID service. When Flask-AppBuilder is set to AUTH_TYPE AUTH_OID, the application fails to properly validate the OpenID provider, potentially allowing unauthorized access. The issue has been assigned a CVSS v3.1 base score of 9.1 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, indicating high severity with potential for unauthorized privilege access (NVD).

Impact

If successfully exploited, this vulnerability could grant an attacker unauthorized privilege access to the application. The impact is particularly severe if a custom OpenID service is deployed by the attacker and accessible by the backend. However, the scope of impact is limited to applications specifically using the legacy OpenID 2.0 authorization protocol, which has significantly reduced usage and is no longer supported by major authorization providers (GitHub Advisory).

Exploitability

The vulnerability is exploitable through forged HTTP requests when the application uses the OpenID 2.0 authorization protocol. The attack requires no special privileges or user interaction, as indicated by the CVSS metrics (PR:N/UI:N). However, exploitation is limited to environments specifically configured to use the deprecated OpenID 2.0 protocol (NVD).

Mitigation and workarounds

The primary mitigation is to upgrade to Flask-AppBuilder version 4.3.11 or later. For cases where immediate upgrade is not possible, a workaround involves implementing a custom security manager class that adds proper validation for OpenID providers. This can be done by extending the SecurityManager class and implementing additional validation checks in the authentication flow (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-84366HIGH7.4
  • Python logoPython
  • python-scrapy
NoYesSep 01, 2026
CVE-2026-53720MEDIUM5.1
  • Python logoPython
  • pymonocypher
NoYesSep 03, 2026
CVE-2026-84311MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesSep 01, 2026
CVE-2026-84310MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesSep 01, 2026
GHSA-wwv5-g3v4-889xLOW2.3
  • Python logoPython
  • tornado
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management