CVE-2025-27136 Details
Description
LocalS3 is an Amazon S3 mock service for testing and local development. Prior to version 1.21, 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. The attacker only needs to be able to send HTTP requests to the LocalS3 service to exploit this vulnerability.
A vulnerability in LocalS3, an Amazon S3 mock service, prior to version 1.21, allows for XML External Entity (XXE) injection during the bucket creation process. The service's XML parser, when handling the CreateBucketConfiguration XML document, is configured to resolve external entities. This flaw enables an attacker to declare an external entity that points to an internal URL, which the server fetches while parsing the XML. The vulnerability arises in the location constraint processing, where the XML parser improperly validates external entities. Exploiting this issue can lead to server-side request forgery (SSRF) attacks, allowing access to internal services or resources that should be off-limits to external networks. The responses from these internal requests are included in the bucket configuration, potentially leaking sensitive information.
Users are advised to update to LocalS3 version 1.21 or later, where this vulnerability has been addressed. For those unable to update, consider disabling external entity processing in the XML parser, implementing input validation to reject XML documents with DOCTYPE declarations or external entity references, or using a different XML parser that does not process external entities by default.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 10, 2025CISA-ADP
Assessed Mar 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Robothy/local-s3/commit/d6ed756ceb30c1eb9d4263321ac683d734f8836f | [email protected] | Source CodeVendor |
| https://github.com/Robothy/local-s3/security/advisories/GHSA-g6wm-2v64-wq36 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-611 | Improper Restriction of XML External Entity Reference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Robothy LocalS3 | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 10, 2025 | New CVE Received | [email protected] |
Volerion