{"id":"CVE-2024-25128","aliases":["CVE-2024-25128","GHSA-j2pw-vp55-fqqj","PYSEC-2026-340"],"related":[],"kind":"vulnerability","state":"published","title":"Flask-AppBuilder incorrect authentication when using auth type OpenID","summary":"Flask-AppBuilder is an application development framework, built on top of Flask. When Flask-AppBuilder is set to AUTH_TYPE AUTH_OID, it 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 OpenID 2.0 authorization protocol. Upgrade to Flask-AppBuilder 4.3.11 to fix the vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Flask-AppBuilder is an application development framework, built on top of Flask. When Flask-AppBuilder is set to AUTH_TYPE AUTH_OID, it 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 OpenID 2.0 authorization protocol. Upgrade to Flask-AppBuilder 4.3.11 to fix the vulnerability.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen 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. \n\nThis 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.\n\n### Patches\nUpgrade to Flask-AppBuilder 4.3.11\n\n### Workarounds\nIf upgrade is not possible add the following to your config:\n\n```\nfrom flask import flash, redirect\nfrom flask_appbuilder import expose\nfrom flask_appbuilder.security.sqla.manager import SecurityManager\nfrom flask_appbuilder.security.views import AuthOIDView\nfrom flask_appbuilder.security.forms import LoginForm_oid\n\nbasedir = os.path.abspath(os.path.dirname(__file__))\n\n\nclass FixedOIDView(AuthOIDView):\n    @expose(\"/login/\", methods=[\"GET\", \"POST\"])\n    def login(self, flag=True):\n        form = LoginForm_oid()\n        if form.validate_on_submit():\n            identity_url = None\n            for provider in self.appbuilder.sm.openid_providers:\n                if provider.get(\"url\") == form.openid.data:\n                    identity_url = form.openid.data\n            if identity_url is None:\n                flash(self.invalid_login_message, \"warning\")\n                return redirect(self.appbuilder.get_url_for_login)\n        return super().login(flag=flag)\n\nclass FixedSecurityManager(SecurityManager):\n    authoidview = FixedOIDView\n\n\nFAB_SECURITY_MANAGER_CLASS = \"config.FixedSecurityManager\"\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Flask-AppBuilder es un framework de desarrollo de aplicaciones, construido sobre Flask. Cuando Flask-AppBuilder está configurado en AUTH_TYPE AUTH_OID, permite a un atacante falsificar una solicitud HTTP, que podría engañar al backend para que utilice cualquier servicio OpenID solicitado. Esta vulnerabilidad podría otorgar a un atacante acceso con privilegios no autorizados si el atacante implementa un servicio OpenID personalizado y el backend puede acceder a él. Esta vulnerabilidad solo se puede explotar cuando la aplicación utiliza el protocolo de autorización OpenID 2.0. Actualice a Flask-AppBuilder 4.3.11 para corregir la vulnerabilidad.","source":"nvd"},{"lang":"en","text":"### Impact\nWhen 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. \n\nThis 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.\n\n ### Patches\nUpgrade to Flask-AppBuilder 4.3.11\n\n### Workarounds\nIf upgrade is not possible add the following to your config:\n\n```\nfrom flask import flash, redirect\nfrom flask_appbuilder import expose\nfrom flask_appbuilder.security.sqla.manager import SecurityManager\nfrom flask_appbuilder.security.views import AuthOIDView\n from flask_appbuilder.security.forms import LoginForm_oid\n\nbasedir = os.path.abspath(os.path.dirname(__file__))\n \n\nclass FixedOIDView(AuthOIDView):\n    @expose(\"/login/\", methods=[\"GET\" , \"POST\"])\n    def login(self, flag=True):\n        form = LoginForm_oid()\n        if form.validate_on_submit():\n            identity_url = None\n            for provider in self.appbuilder.sm.openid_providers:\n                if provider.get(\"url\") == form.openid.data:\n                    identity_url = form.openid.data\n            if identity_url is None:\n                flash(self.invalid_login_message, \"warning\")\n                return redirect(self.appbuilder.get_url_for_login)\n        return super().login(flag=flag)\n\nclass FixedSecurityManager(SecurityManager):\n    authoidview = FixedOIDView\n\n\nFAB_SECURITY_MANAGER_CLASS = \"config.FixedSecurityManager\"\n```","format":"markdown","source":"pysec"}],"published":"2024-02-28T15:30:27.705Z","modified":"2026-10-27T16:45:04.488Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"version":"< 4.3.11","status":"affected"}],"vendor":"dpgaspar","product":"Flask-AppBuilder","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"4.3.11","status":"affected"}],"vendor":"dpgaspar","product":"flask-appbuilder","cpe":"cpe:2.3:a:dpgaspar:flask-appbuilder:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.3.11"}],"ecosystem":"PyPI","package":"flask-appbuilder","purl":"pkg:pypi/flask-appbuilder","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.3.11"}],"vendor":"dpgaspar","product":"flask-appbuilder","cpe":"cpe:2.3:a:dpgaspar:flask-appbuilder:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.3.11"}],"ecosystem":"PyPI","package":"flask-appbuilder","purl":"pkg:pypi/flask-appbuilder","source":"pysec"}],"references":[{"url":"https://github.com/dpgaspar/Flask-AppBuilder/security/advisories/GHSA-j2pw-vp55-fqqj","tags":["mitigation","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dpgaspar/Flask-AppBuilder/commit/6336456d83f8f111c842b2b53d1e89627f2502c8","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25128","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/dpgaspar/Flask-AppBuilder","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/flask-appbuilder/PYSEC-2026-340.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/flask-appbuilder","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-j2pw-vp55-fqqj","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-08-26T19:49:15.562Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-25128","url":"https://www.cve.org/CVERecord?id=CVE-2024-25128","licence":"CVE Terms of Use","modified":"2024-08-26T19:54:53.575Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j2pw-vp55-fqqj","url":"https://github.com/advisories/GHSA-j2pw-vp55-fqqj","licence":"CC-BY-4.0","modified":"2026-10-27T16:45:04.488Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-25128","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25128","licence":"Public domain","modified":"2026-06-17T07:15:33.617Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-340","url":"https://osv.dev/vulnerability/PYSEC-2026-340","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:53.007Z"}],"updatedAt":"2026-11-25T22:58:37.168Z","epss":{"score":0.00857,"percentile":0.59494,"date":"2026-12-01T12:00:22.000Z"}}