CVE-2024-6577: Torchserve TorchServe Script References S3 Bucket Vulnerability

MODERATE
Advisory Identifier: GHSA-xx7c-j7h3-vjcq
CVSS 6.3
Published
Advisory Summary

CVE-2024-6577 is a MODERATE (CVSS 6.3) torchserve script references s3 bucket vulnerability (General Security Weakness) affecting Torchserve libraries in the PyPI ecosystem. The issue involves torchserve script references s3 bucket without ensuring ownership or confirming accessibility. Remediation is available in the latest vendor maintenance releases.

CVE-2024-6577 at a Glance

CVE Identifier CVE-2024-6577
GHSA Identifier GHSA-xx7c-j7h3-vjcq
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification General Security Weakness
Affected Product Torchserve
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-6577

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

torchserve fixed: Latest secure release
pip install torchserve>=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:

pip show torchserve

How to Check if You Are Affected

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

pip show torchserve

Analyze the terminal output to locate any version of Torchserve 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: The pip show torchserve command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Torchserve, 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

In the latest version of pytorch/serve, the script 'upload_results_to_s3.sh' references the S3 bucket 'benchmarkai-metrics-prod' without ensuring its ownership or confirming its accessibility. This could lead to potential security vulnerabilities or unauthorized access to the bucket if it is not properly secured or claimed by the appropriate entity. The issue may result in data breaches, exposure of proprietary information, or unauthorized modifications to stored data.

CVE-2024-6577 Affected Torchserve Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
torchserve
PyPI
≤ 0.11.0

References

Frequently Asked Questions

What is CVE-2024-6577?
CVE-2024-6577 is a security vulnerability in Torchserve involving TorchServe script references S3 bucket without ensuring ownership or confirming accessibility under General Security Weakness.
Which Torchserve versions are affected?
Affected versions include releases prior to current release patches across affected packages: torchserve.
What version fixes CVE-2024-6577?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is torchserve affected?
Yes, torchserve is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-6577?
CVE-2024-6577 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-6577?
CVE-2024-6577 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2024-6577?
Run the dependency tree command: 'pip show torchserve'. 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-xx7c-j7h3-vjcq",
  "modified" : "2025-03-21T22:07:23Z",
  "published" : "2025-03-20T12:32:45Z",
  "aliases" : [ "CVE-2024-6577" ],
  "summary" : "TorchServe script references S3 bucket without ensuring ownership or confirming accessibility",
  "details" : "In the latest version of pytorch/serve, the script 'upload_results_to_s3.sh' references the S3 bucket 'benchmarkai-metrics-prod' without ensuring its ownership or confirming its accessibility. This could lead to potential security vulnerabilities or unauthorized access to the bucket if it is not properly secured or claimed by the appropriate entity. The issue may result in data breaches, exposure of proprietary information, or unauthorized modifications to stored data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "torchserve"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6577"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pytorch/serve"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/20917570-8328-428f-bd1d-4fcd71fb2359"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-21T22:07:23Z",
    "nvd_published_at" : "2025-03-20T10:15:32Z"
  }
}