CVE-2025-25297
Python vulnerability analysis and mitigation

Overview

Label Studio, an open source data labeling tool, disclosed a Server-Side Request Forgery (SSRF) vulnerability (CVE-2025-25297) in its S3 storage integration feature prior to version 1.16.0. The vulnerability was discovered in the endpoint configuration where users could specify a custom S3 endpoint URL via the s3_endpoint parameter. This parameter was passed directly to the boto3 AWS SDK without proper validation or restrictions on the protocol or destination (GitHub Advisory).

Technical details

The vulnerability exists in the S3 storage integration's endpoint configuration. When creating an S3 storage connection, the application allows users to specify a custom S3 endpoint URL that is passed to the boto3 AWS SDK without proper validation. The CVSS v3.1 score is 8.6 (High) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N, indicating network attack vector, low complexity, no privileges required, and no user interaction needed (GitHub Advisory, NVD).

Impact

The vulnerability enables attackers to bypass network segmentation and access internal services that should not be accessible from the external network. When the storage sync operation is triggered, the application attempts to make S3 API calls to the specified endpoint, effectively making HTTP requests to the target service. The vulnerability is particularly severe because error messages from failed requests contain the full response body, allowing data exfiltration from internal services (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Label Studio version 1.16.0. The fix includes implementing strict validation of S3 endpoint URLs to allow only valid S3 service endpoints, adding an allowlist of endpoint domains and protocols, and sanitizing error messages to prevent leakage of sensitive information from failed requests. Users are advised to upgrade to version 1.16.0 or later (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management