Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.github.robothy/local-s3-rest
  4. ›
  5. GHSA-47qw-ccjm-9c2c

GHSA-47qw-ccjm-9c2c: LocalS3 XML Parser Vulnerable to XML External Entity (XXE) Injection

March 10, 2025

The LocalS3 project, which implements an S3-compatible storage interface, contains a critical XML External Entity (XXE) Injection vulnerability in its XML parsing functionality. When processing XML requests for multipart upload operations, the application accepts and processes XML external entities, allowing an attacker to read local system files and potentially make outbound network connections.

The vulnerability exists because the XML parser is configured to process external entities and DTD (Document Type Definition) declarations without proper restrictions. This allows an attacker to define external entities that can read local files and exfiltrate their contents through outbound HTTP requests.

The vulnerability is particularly severe as it allows direct access to sensitive files on the filesystem, bypassing any directory traversal protections that might be in place for normal S3 operations.

References

  • github.com/Robothy/local-s3
  • github.com/Robothy/local-s3/commit/d6ed756ceb30c1eb9d4263321ac683d734f8836f
  • github.com/Robothy/local-s3/security/advisories/GHSA-47qw-ccjm-9c2c
  • github.com/advisories/GHSA-47qw-ccjm-9c2c

Code Behaviors & Features

Detect and mitigate GHSA-47qw-ccjm-9c2c 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/GHSA-47qw-ccjm-9c2c.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:07 +0000.