CVE-2022-31177: Flask AppBuilder Flask-AppBuilder Before V4.1.3 Allows Inference Vulnerability

LOW
Advisory Identifier: GHSA-32ff-4g79-vgfc
CVSS 2.7
CWE-200 CWE-916
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-31177
GHSA Identifier GHSA-32ff-4g79-vgfc
Severity LOW
CVSS v3.1 Base Score 2.7
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Flask AppBuilder
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

Flask-AppBuilder fixed: 4.1.3
pip install Flask-AppBuilder>=4.1.3
Verify Direct and Transitive Dependencies

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

### Impact An 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. Only when using `AUTH_DB` database authentication option. ### Patches Fixed on 4.1.3 ### For more information If you have any questions or comments about this advisory: * Open an issue in [example link to repo](http://example.com) * Email us at [example email address](mailto:example@example.com)

CVE-2022-31177 Affected Flask AppBuilder Versions

1 component(s)
Fixed Versions:
4.1.3
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?
CVE-2022-31177 is a security vulnerability in Flask AppBuilder involving Flask-AppBuilder before v4.1.3 allows inference of sensitive information through query strings under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Flask AppBuilder versions are affected?
Affected versions include releases prior to 4.1.3 across affected packages: Flask-AppBuilder.
What version fixes CVE-2022-31177?
Upgrading to 4.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Flask-AppBuilder affected?
Yes, Flask-AppBuilder is affected in releases prior to 4.1.3. Upgrade your dependency to 4.1.3 or later.
What is the CVSS score of CVE-2022-31177?
CVE-2022-31177 has a CVSS v3.1 base score of 2.7 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2022-31177?
CVE-2022-31177 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2022-31177?
Run the dependency tree command: 'pip show Flask-AppBuilder'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}