CVE-2025-25297: Label Studio allows Server-Side Request Forgery in the S3 Storage Endpoint

Published Feb 14, 2025
·
Updated

Description Label Studio's S3 storage integration feature contains a Server-Side Request Forgery (SSRF) vulnerability in its endpoint configuration. When creating an S3 storage connection, the application allows users to specify a custom S3 endpoint URL via the s3endpoint parameter. This endpoint URL is passed directly to the boto3 AWS SDK without proper validation or restrictions on the protocol or destination.

The vulnerability allows an attacker to make the application send HTTP requests to arbitrary internal services by specifying them as the S3 endpoint. 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 and returning the response in error messages.

This SSRF vulnerability enables attackers to bypass network segmentation and access internal services that should not be accessible from the external network. The vulnerability is particularly severe because error messages from failed requests contain the full response body, allowing data exfiltration from internal services.

Steps to reproduce 1. Create an account in Label Studio

2. Create a new project with basic configuration

3. Create an S3 storage connection with the following configuration: json { "project": 1, "title": "Test Storage", "bucket": "<filename>", "s3endpoint": "http://internal-web", "usebloburls": true, "awsaccesskeyid": "test", "awssecretaccesskey": "test" } 4. Trigger a storage sync operation by sending a POST request to /api/storages/s3/[storageid]/sync

The application will attempt to connect to the specified endpoint URL as if it were an S3 service. When the request fails due to invalid S3 API responses, the error message will contain the raw response from the internal service, allowing access to internal resources. Mitigations - Implement strict validation of S3 endpoint URLs to allow only valid S3service endpoints - Add an allowlist of endpoint domains and protocols - Sanitize error messages to prevent leakage of sensitive information from failed requests - Consider implementing network-level controls to restrict outbound connections from the application server

Impact This vulnerability has high severity as it allows authenticated users to make requests to arbitrary internal services from the application server, potentially exposing sensitive internal resources and bypassing network segmentation. The inclusion of response data in error messages makes this particularly effective for data exfiltration.

Other sources

Label Studio is an open source data labeling tool. Prior to version 1.16.0, Label Studio's S3 storage integration feature contains a Server-Side Request Forgery (SSRF) vulnerability in its endpoint configuration. When creating an S3 storage connection, the application allows users to specify a custom S3 endpoint URL via the s3endpoint parameter. This endpoint URL is passed directly to the boto3 AWS SDK without proper validation or restrictions on the protocol or destination. The vulnerability allows an attacker to make the application send HTTP requests to arbitrary internal services by specifying them as the S3 endpoint. 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 and returning the response in error messages. This SSRF vulnerability enables attackers to bypass network segmentation and access internal services that should not be accessible from the external network. The vulnerability is particularly severe because error messages from failed requests contain the full response body, allowing data exfiltration from internal services. Version 1.16.0 contains a patch for the issue.

MITRE

Affected Software

2 affected componentsFixes available
pip/label-studio<1.16.0
1.16.0
HumanSignal Label Studio<1.16.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/label-studio to a version that resolves this vulnerability.

    Fixed in 1.16.0
  2. Upgrade

    Upgrade Label Studio S3 storage integration to a version that resolves this vulnerability.

    Fixed in 1.16.0
  3. Configuration

    When creating an S3 storage connection, validate the user-supplied s3_endpoint parameter to allow only valid S3 service endpoints (restrict endpoint domains and protocols so it cannot point to arbitrary internal services).

    Label Studio S3 storage integration s3_endpoint = Allowlist only valid S3 service endpoint domains and protocols; reject arbitrary/internal URLs
  4. Configuration

    Sanitize error messages for failed S3 API requests so they do not include the full raw response body returned from the target service.

    Label Studio S3 storage integration error message handling for failed S3 API requests = Sanitize error messages to avoid including raw response bodies
  5. Compensating control

    Implement network-level controls to restrict outbound connections from the application server so it cannot reach arbitrary internal services that could be targeted via SSRF.

Event History

Feb 14, 2025
Advisory Published
via GitHub·03:26 PM
CVE Published
via MITRE·07:25 PM
Data Sourced
via MITRE·07:25 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-25297?

CVE-2025-25297 is rated as a high severity vulnerability due to its potential for exploitation via Server-Side Request Forgery (SSRF).

2

How do I fix CVE-2025-25297?

To remediate CVE-2025-25297, upgrade Label Studio to version 1.16.0 or later, which addresses the SSRF vulnerability.

3

What impact does CVE-2025-25297 have on my application?

CVE-2025-25297 allows an attacker to manipulate the S3 endpoint configuration, potentially leading to unauthorized access or data leakage.

4

Is my version of Label Studio affected by CVE-2025-25297?

Any version of Label Studio earlier than 1.16.0 is affected by CVE-2025-25297.

5

What are the symptoms of exploitation of CVE-2025-25297?

Symptoms of exploitation may include unusual outbound requests or data retrieval from unauthorized endpoints in your S3 integration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203