CVE-2024-29640: Aliyundrive webdav Aliyundrive-webdav Vulnerable To Command Injection Vulnerability
HIGHCVE-2024-29640 is a HIGH aliyundrive-webdav vulnerable to command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Aliyundrive webdav libraries in the crates.io ecosystem. The issue involves aliyundrive-webdav vulnerable to command injection. Remediation is available in the latest vendor maintenance releases.
CVE-2024-29640 at a Glance
How to Fix CVE-2024-29640
To remediate this vulnerability, upgrade all affected Aliyundrive webdav dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade aliyundrive-webdav to Latest secure release
pip install aliyundrive-webdav>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for aliyundrive-webdav
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-29640, inspect your project dependencies for Aliyundrive webdav:
inspect dependencies for aliyundrive-webdav
Analyze the terminal output to locate any version of Aliyundrive webdav in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Aliyundrive webdav, 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-29640 Affected Aliyundrive webdav Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aliyundrive-webdav
|
crates.io |
≤ 2.3.3
|
|
|
aliyundrive-webdav
|
PyPI |
≤ 2.3.3
|
|
References
Frequently Asked Questions
What is CVE-2024-29640?
Which Aliyundrive webdav versions are affected?
What version fixes CVE-2024-29640?
Is aliyundrive-webdav affected?
What CWE is associated with CVE-2024-29640?
How can I check crates.io dependencies for CVE-2024-29640?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-73v2-rxqp-7q4f",
"modified" : "2024-03-29T20:14:34Z",
"published" : "2024-03-29T18:30:42Z",
"aliases" : [ "CVE-2024-29640" ],
"summary" : "aliyundrive-webdav vulnerable to Command Injection",
"details" : "An issue in aliyundrive-webdav v.2.3.3 and before allows a remote attacker to execute arbitrary code via a crafted payload to the sid parameter in the `action_query_qrcode` component.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "aliyundrive-webdav"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.3.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "aliyundrive-webdav"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29640"
}, {
"type" : "WEB",
"url" : "https://github.com/lakemoon602/vuln/blob/main/detail.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/messense/aliyundrive-webdav"
}, {
"type" : "WEB",
"url" : "https://github.com/messense/aliyundrive-webdav/blob/main/openwrt/luci-app-aliyundrive-webdav/luasrc/controller/aliyundrive-webdav.lua"
}, {
"type" : "WEB",
"url" : "http://aliyundrive-webdav.com"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-29T20:14:34Z",
"nvd_published_at" : "2024-03-29T17:15:12Z"
}
}