CVE-2024-7340: Weave Weave Server API Vulnerable To Vulnerability
HIGHCVE-2024-7340 is a HIGH (CVSS 8.8) weave server api vulnerable to vulnerability (CWE-20: Improper Input Validation) affecting Weave libraries in the PyPI ecosystem. The issue involves weave server api vulnerable to arbitrary file leak. Remediation is available by upgrading affected packages to version 0.50.8.
CVE-2024-7340 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-7340
To remediate this vulnerability, upgrade all affected Weave 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 weave>=0.50.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show weave
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-7340, inspect your installed packages using pip:
pip show weave
Analyze the terminal output to locate any version of Weave in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.50.8), your application is affected.
Note: The pip show weave command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Weave, 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-7340 Affected Weave Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
weave
|
PyPI |
< 0.50.8
|
0.50.8
|
References
Frequently Asked Questions
What is CVE-2024-7340?
Which Weave versions are affected?
What version fixes CVE-2024-7340?
Is weave affected?
What is the CVSS score of CVE-2024-7340?
What CWE is associated with CVE-2024-7340?
How can I check PyPI dependencies for CVE-2024-7340?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r49h-6qxq-624f",
"modified" : "2024-08-02T15:58:23Z",
"published" : "2024-07-31T15:31:19Z",
"aliases" : [ "CVE-2024-7340" ],
"summary" : "Weave server API vulnerable to arbitrary file leak",
"details" : "The Weave server API allows remote users to fetch files from a specific directory, but due to a lack of input validation, it is possible to traverse and leak arbitrary files remotely. In various common scenarios, this allows a low-privileged user to assume the role of the server admin.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "weave"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.50.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-7340"
}, {
"type" : "WEB",
"url" : "https://github.com/wandb/weave/pull/1657"
}, {
"type" : "WEB",
"url" : "https://github.com/wandb/weave/commit/f43d5fb75e0d52933a52ecd9a0ce2f9b082e6c9f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wandb/weave"
}, {
"type" : "WEB",
"url" : "https://research.jfrog.com/vulnerabilities/wandb-weave-server-remote-arbitrary-file-leak-jfsa-2024-001039248"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-31T20:54:48Z",
"nvd_published_at" : "2024-07-31T15:15:11Z"
}
}