CVE-2024-6577: Torchserve TorchServe Script References S3 Bucket Vulnerability
MODERATECVE-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
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).
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.
pip install torchserve>=Latest secure release
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
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?
Which Torchserve versions are affected?
What version fixes CVE-2024-6577?
Is torchserve affected?
What is the CVSS score of CVE-2024-6577?
What CWE is associated with CVE-2024-6577?
How can I check PyPI dependencies for CVE-2024-6577?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}