CVE-2022-31177: Flask AppBuilder Flask-AppBuilder Before V4.1.3 Allows Inference Vulnerability
LOWCVE-2022-31177 is a LOW (CVSS 2.7) flask-appbuilder before v4.1.3 allows inference vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Flask AppBuilder libraries in the PyPI ecosystem. The issue involves flask-appbuilder before v4.1.3 allows inference of sensitive information through query strings. Remediation is available by upgrading affected packages to version 4.1.3.
CVE-2022-31177 at a Glance
Security Impact
CVSS: 2.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2022-31177
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.1.3
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-2022-31177, 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.1.3), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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-2022-31177 Affected Flask AppBuilder Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Flask-AppBuilder
|
PyPI |
< 4.1.3
|
4.1.3
|
References
Frequently Asked Questions
What is CVE-2022-31177?
Which Flask AppBuilder versions are affected?
What version fixes CVE-2022-31177?
Is Flask-AppBuilder affected?
What is the CVSS score of CVE-2022-31177?
What CWE is associated with CVE-2022-31177?
How can I check PyPI dependencies for CVE-2022-31177?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-32ff-4g79-vgfc",
"modified" : "2025-03-07T19:09:38Z",
"published" : "2022-07-29T22:28:12Z",
"aliases" : [ "CVE-2022-31177" ],
"summary" : "Flask-AppBuilder before v4.1.3 allows inference of sensitive information through query strings",
"details" : "### Impact\nAn authenticated Admin user could craft HTTP requests to filter users by their salted and hashed passwords strings. These filters could be made by using partial hashed password strings. The response would not include the hashed passwords, but an attacker could infer partial password hashes and their respective users.\n\nOnly when using `AUTH_DB` database authentication option.\n\n### Patches\nFixed on 4.1.3\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [example link to repo](http://example.com)\n* Email us at [example email address](mailto:example@example.com)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Flask-AppBuilder"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/security/advisories/GHSA-32ff-4g79-vgfc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31177"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder"
}, {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/releases/tag/v4.1.3"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/flask-appbuilder/PYSEC-2022-247.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-916" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-29T22:28:12Z",
"nvd_published_at" : "2022-08-01T19:15:00Z"
}
}