Medium

LocalS3 CreateBucketConfiguration Endpoint XML External Entity (XXE) Injection

  • Disclosed: 10.03.2025
  • Updated: 11.10.2026 12:21

Description

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.

Steps to Reproduce

  1. Create an XML document that includes an external entity declaration pointing to the internal target:
xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test [ <!ENTITY xxe SYSTEM "http://internal-web/flag.txt"> ]>
<CreateBucketConfiguration>
    <LocationConstraint>&xxe;</LocationConstraint>
</CreateBucketConfiguration>
  1. Send a PUT request to create a new bucket with this configuration:
bash
curl -X PUT http://app/test-bucket-2 -H 'Content-Type: application/xml' -d @payload.xml
  1. Retrieve the bucket location to see the resolved entity content:
bash
curl http://app/test-bucket-2/?location

When these steps are executed, the server processes the XML, resolves the external entity by making a request to the internal URL, and includes the response in the bucket's location constraint. The attacker can then retrieve this information through the bucket location endpoint.

Mitigations

  • Disable XML external entity resolution in the XML parser configuration. Most XML parsers have options to disable external entity processing.
  • Implement proper input validation for XML documents, rejecting those that contain DOCTYPE declarations or external entity references.
  • Use XML parsers that are configured securely by default and don't process external entities.
  • If external entity processing is required, implement a whitelist of allowed URLs and validate all URLs before making any requests.

Impact

The vulnerability allows unauthenticated attackers to make the server perform HTTP requests to internal networks and services, potentially exposing sensitive information or enabling further attacks against internal systems. The attacker only needs to be able to send HTTP requests to the LocalS3 service to exploit this vulnerability.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) io.github.robothy:local-s3-rest < 1.21 1.21

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P
Weakness (CWE)
CWE-611
Platform
Java / Kotlin (Maven)
Package
io.github.robothy:local-s3-rest
Disclosed
10.03.2025
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-g6wm-2v64-wq36 - CC BY 4.0

Vulnerability history: io.github.robothy:local-s3-rest

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
03.2025 03.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 4

Disclosures per year

  1. 2025: 4
  2. 2026: 0
  1. LocalS3 CreateBucketConfiguration Endpoint XML External Entity (XXE) Injection this entry
    Medium CVE-2025-27136 < 1.21 1.21

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.