CVE-2025-27136

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-27136
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-27136.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-27136
Aliases
Published
2025-03-10T19:15:40Z
Modified
2025-03-11T08:50:42.857476Z
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/robothy/local-s3

Affected ranges

Type
GIT
Repo
https://github.com/robothy/local-s3
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.0
1.1
1.10
1.11
1.12
1.13
1.14
1.15
1.16
1.17
1.18
1.19
1.2
1.20
1.3
1.4
1.5
1.6
1.7
1.8
1.9