CVE-2024-29640: Aliyundrive webdav Aliyundrive-webdav Vulnerable To Command Injection Vulnerability

HIGH
Advisory Identifier: GHSA-73v2-rxqp-7q4f
CWE-77
Published
Advisory Summary

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

CVE Identifier CVE-2024-29640
GHSA Identifier GHSA-73v2-rxqp-7q4f
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Aliyundrive webdav
Package Ecosystem crates.io
Published Date
Last Updated

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.

aliyundrive-webdav fixed: Latest secure release
Upgrade aliyundrive-webdav to Latest secure release
aliyundrive-webdav fixed: Latest secure release
pip install aliyundrive-webdav>=Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2024-29640 is a security vulnerability in Aliyundrive webdav involving aliyundrive-webdav vulnerable to Command Injection under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Aliyundrive webdav versions are affected?
Affected versions include releases prior to current release patches across affected packages: aliyundrive-webdav.
What version fixes CVE-2024-29640?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is aliyundrive-webdav affected?
Yes, aliyundrive-webdav is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2024-29640?
CVE-2024-29640 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (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.).
How can I check crates.io dependencies for CVE-2024-29640?
Run the dependency tree command: 'inspect dependencies for aliyundrive-webdav'. 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-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"
  }
}