CVE-2024-24770: Vantage6 Vantage6 Vulnerable To A Username Vulnerability

MODERATE
Advisory Identifier: GHSA-5h3x-6gwf-73jm
CVSS 5.3
CWE-362 CWE-208
Published
Advisory Summary

CVE-2024-24770 is a MODERATE (CVSS 5.3) vantage6 vulnerable to a username vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Vantage6 libraries in the PyPI ecosystem. The issue involves vantage6 vulnerable to a username timing attack on recover password/mfa token. Remediation is available by upgrading affected packages to version 4.3.0.

CVE-2024-24770 at a Glance

CVE Identifier CVE-2024-24770
GHSA Identifier GHSA-5h3x-6gwf-73jm
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Vantage6
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-2024-24770

To remediate this vulnerability, upgrade all affected Vantage6 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

vantage6 fixed: 4.3.0
pip install vantage6>=4.3.0
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 vantage6

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-24770, inspect your installed packages using pip:

pip show vantage6

Analyze the terminal output to locate any version of Vantage6 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.0), your application is affected.

Note: The pip show vantage6 command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Vantage6, 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 Much like https://github.com/vantage6/vantage6/security/advisories/GHSA-45gq-q4xh-cp53, it is possible to find which usernames exist in vantage6 by calling the API routes `/recover/lost` and `/2fa/lost`, which send emails to users if they have lost their password or MFA token. Usernames can be found by assessing response time differences, and additionally, they can be found because the endpoint gives a response "Failed to login" if the username exists. ### Patches No ### Workarounds No

CVE-2024-24770 Affected Vantage6 Versions

1 component(s)
Fixed Versions:
4.3.0
Product / Package Ecosystem Affected Versions Fixed Version
vantage6
PyPI
< 4.3.0
4.3.0

References

Frequently Asked Questions

What is CVE-2024-24770?
CVE-2024-24770 is a security vulnerability in Vantage6 involving vantage6 vulnerable to a username timing attack on recover password/MFA token under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Vantage6 versions are affected?
Affected versions include releases prior to 4.3.0 across affected packages: vantage6.
What version fixes CVE-2024-24770?
Upgrading to 4.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vantage6 affected?
Yes, vantage6 is affected in releases prior to 4.3.0. Upgrade your dependency to 4.3.0 or later.
What is the CVSS score of CVE-2024-24770?
CVE-2024-24770 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-24770?
CVE-2024-24770 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check PyPI dependencies for CVE-2024-24770?
Run the dependency tree command: 'pip show vantage6'. 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-5h3x-6gwf-73jm",
  "modified" : "2024-03-15T16:44:36Z",
  "published" : "2024-03-15T16:44:36Z",
  "aliases" : [ "CVE-2024-24770" ],
  "summary" : "vantage6 vulnerable to a username timing attack on recover password/MFA token",
  "details" : "### Impact\nMuch like https://github.com/vantage6/vantage6/security/advisories/GHSA-45gq-q4xh-cp53, it is possible to find which usernames exist in vantage6 by calling the API routes `/recover/lost` and `/2fa/lost`, which send emails to users if they have lost their password or MFA token. Usernames can be found by assessing response time differences, and additionally, they can be found because the endpoint gives a response \"Failed to login\" if the username exists.\n\n### Patches\nNo\n\n### Workarounds\nNo",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "vantage6"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.3.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.2.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vantage6/vantage6/security/advisories/GHSA-45gq-q4xh-cp53"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vantage6/vantage6/security/advisories/GHSA-5h3x-6gwf-73jm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24770"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vantage6/vantage6/commit/aecfd6d0e83165a41a60ebd52d2287b0217be26b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vantage6/vantage6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-208", "CWE-362" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-15T16:44:36Z",
    "nvd_published_at" : "2024-03-14T19:15:49Z"
  }
}