CVE-2024-6577: TorchServe script references S3 bucket without ensuring ownership or confirming accessibility
A benchmark script in the TorchServe repository, `upload_results_to_s3.sh`, points at the S3 bucket `benchmarkai-metrics-prod` without checking who owns it. If someone else controls that bucket, results uploaded by the script go to them. The advisory data lists torchserve up to 0.11.0 and no patched version.
Published Mar 20, 2025 · Updated Mar 21, 2025 · Analysis Nov 1, 2026
What an attacker can do
The script uploads benchmark results to a hard-coded S3 bucket name. It does not confirm the bucket is owned by the project or even exists. An attacker who claims or already owns a bucket by that name receives whatever the script uploads, and can serve back altered data to any process that reads from it. The advisory states the consequences as possible data exposure, exposure of proprietary information or unauthorized changes to stored data.
This is a supply-chain and misconfiguration risk, not a flaw in the TorchServe model server. It matters to teams that run the benchmark scripts from the repository, or copy them into CI, and have AWS credentials configured. The CVSS vector marks user interaction as required, because someone must run the script. The sources do not say whether the bucket was claimed by anyone.
Who is affected
The advisory data lists the torchserve pip package at 0.11.0 and earlier. The affected file is the benchmark script upload_results_to_s3.sh in the pytorch/serve repository. A normal install that serves models and never runs that script does not touch the bucket.
Check whether you use it:
pip show torchserveThen search your repositories and CI jobs for upload_results_to_s3.sh and the bucket name benchmarkai-metrics-prod.
torchserve
- Ecosystem
- PyPI
- Affected
- <= 0.11.0
- Fixed in
- No patched version yet
- Check
pip show torchserve
How to fix it
No patched version is listed and the sources give no fix commit. Do not run upload_results_to_s3.sh as shipped. Replace the bucket name with a bucket you own and have verified, and make the script check ownership, for example with an expected bucket owner setting in the AWS CLI call.
If you already ran the script with real credentials, review what it uploaded and rotate the credentials involved.
How to tell if you were hit
Search shell history, CI logs and job definitions for runs of upload_results_to_s3.sh and for S3 traffic to benchmarkai-metrics-prod. In CloudTrail or network logs, look for uploads or copy operations against that bucket name from your accounts.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.
Questions
- Does CVE-2024-6577 let someone attack a running TorchServe server?
No source says so. The issue is a hard-coded S3 bucket in a benchmark upload script, not a network flaw in the model server.
- Is there a patched TorchServe release?
The advisory lists none. Up to 0.11.0 is marked vulnerable. Edit the script to use a bucket you own.
- Who is at risk?
Teams that run the repository's benchmark scripts, since the CVSS vector requires user interaction. Teams that only serve models are not exposed through this script.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More TorchServe vulnerabilities
All TorchServe entriesCVE-2024-35198
TorchServe vulnerable to bypass of allowed_urls configuration
critical9.8Jul 18, 2024CVE-2024-35199
TorchServe gRPC Port Exposure
high8.2Jul 18, 2024CVE-2023-48299
TorchServe ZipSlip
medium5.3Nov 21, 2023CVE-2023-43654
TorchServe Server-Side Request Forgery vulnerability
critical9.8Oct 2, 2023GHSA-4mqg-h5jf-j9m7
TorchServe Pre-Auth Remote Code Execution
critical9.9Oct 2, 2023
