Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.github.robothy/local-s3-rest
  4. ›
  5. CVE-2025-27136

CVE-2025-27136: LocalS3 CreateBucketConfiguration Endpoint XML External Entity (XXE) Injection

March 10, 2025 (updated March 14, 2025)

The LocalS3 service’s bucket creation endpoint is vulnerable to XML External Entity (XXE) injection. When processing the CreateBucketConfiguration XML document during bucket creation, the service’s XML parser is configured to resolve external entities. This allows an attacker to declare an external entity that references an internal URL, which the server will then attempt to fetch when parsing the XML.

The vulnerability specifically occurs in the location constraint processing, where the XML parser resolves external entities without proper validation or restrictions. When the external entity is resolved, the server makes an HTTP request to the specified URL and includes the response content in the parsed XML document.

This vulnerability can be exploited to perform server-side request forgery (SSRF) attacks, allowing an attacker to make requests to internal services or resources that should not be accessible from external networks. The server will include the responses from these internal requests in the resulting bucket configuration, effectively leaking sensitive information.

References

  • github.com/Robothy/local-s3
  • github.com/Robothy/local-s3/commit/d6ed756ceb30c1eb9d4263321ac683d734f8836f
  • github.com/Robothy/local-s3/security/advisories/GHSA-g6wm-2v64-wq36
  • github.com/advisories/GHSA-g6wm-2v64-wq36
  • nvd.nist.gov/vuln/detail/CVE-2025-27136

Code Behaviors & Features

Detect and mitigate CVE-2025-27136 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.21

Fixed versions

  • 1.21

Solution

Upgrade to version 1.21 or above.

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

maven/io.github.robothy/local-s3-rest/CVE-2025-27136.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:29 +0000.