CVE-2024-45314: Flask appbuilder Flask-AppBuilder's Login Form Allows Browser Vulnerability
MODERATECVE-2024-45314 is a MODERATE (CVSS 3.6) flask-appbuilder's login form allows browser vulnerability (CWE-525: Use of Web Browser Cache Containing Sensitive Information) affecting Flask appbuilder libraries in the PyPI ecosystem. The issue involves flask-appbuilder's login form allows browser to cache sensitive fields. Remediation is available by upgrading affected packages to version 4.5.1.
CVE-2024-45314 at a Glance
Security Impact
CVSS: 3.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N).
How to Fix CVE-2024-45314
To remediate this vulnerability, upgrade all affected Flask appbuilder dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install flask-appbuilder>=4.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show flask-appbuilder
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-45314, inspect your installed packages using pip:
pip show flask-appbuilder
Analyze the terminal output to locate any version of Flask appbuilder in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.1), your application is affected.
Note: The pip show flask-appbuilder command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-525: Use of Web Browser Cache Containing Sensitive Information, where the web application does not use an appropriate caching policy that specifies the extent to which each web page and associated form fields should be cached. In Flask appbuilder, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-45314 Affected Flask appbuilder Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
flask-appbuilder
|
PyPI |
< 4.5.1
|
4.5.1
|
References
Frequently Asked Questions
What is CVE-2024-45314?
Which Flask appbuilder versions are affected?
What version fixes CVE-2024-45314?
Is flask-appbuilder affected?
What is the CVSS score of CVE-2024-45314?
What CWE is associated with CVE-2024-45314?
How can I check PyPI dependencies for CVE-2024-45314?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fw5r-6m3x-rh7p",
"modified" : "2024-11-18T16:27:09Z",
"published" : "2024-09-04T18:12:16Z",
"aliases" : [ "CVE-2024-45314" ],
"summary" : "Flask-AppBuilder's login form allows browser to cache sensitive fields ",
"details" : "### Impact\nAuth DB login form default cache directives allows browser to locally store sensitive data. This can be an issue on environments using shared computer resources.\n\n### Patches\nUpgrade flask-appbuilder to version 4.5.1\n\n### Workarounds\nIf upgrading is not possible configure your web server to send the following HTTP headers for /login:\n\"Cache-Control\": \"no-store, no-cache, must-revalidate, max-age=0\"\n\"Pragma\": \"no-cache\"\n\"Expires\": \"0\" \n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "flask-appbuilder"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/security/advisories/GHSA-fw5r-6m3x-rh7p"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45314"
}, {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/commit/3030e881d2e44f4021764e18e489fe940a9b3636"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-525" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-04T18:12:16Z",
"nvd_published_at" : "2024-09-04T16:15:08Z"
}
}