Skip to content

CVE-2025-27136 – LocalS3 CreateBucketConfiguration XXE Injec... #1187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

carlospolop
Copy link
Collaborator

🤖 Automated Content Update

This PR was automatically generated by the HackTricks News Bot based on a technical blog post.

📝 Source Information

🎯 Content Summary

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

Overview

The CVE-2025-27136 vulnerability is an XML External Entity (XXE) injection in LocalS3’s CreateBucketConfiguration endpoint affecting all versions prior to 1.21. With a CVSS 3.1 score of 5.5 (Medium), this flaw allows unauthenticated remote attackers to read arbitrary files from the server’s filesystem by abusing external e...

🔧 Technical Details

Java’s DocumentBuilderFactory and similar XML parsers resolve external entities by default unless explicitly disabled, enabling XXE attacks.

An attacker crafts a <!DOCTYPE> declaration with a SYSTEM entity pointing to a file:// or http:// URI (e.g., <!ENTITY xxe SYSTEM "file:///etc/passwd">) and injects &xxe; into an XML element. The parser fetches and substitutes the external resource, leading...

🤖 Agent Actions

Added a comprehensive “Java DocumentBuilderFactory hardening example” section to the XXE guide (src/pentesting-web/xxe-xee-xml-external-entity.md):

  1. Explained insecure default usage of DocumentBuilderFactory in Java.
  2. Provided secure configuration code snippet disabling external entities, DOCTYPE, etc.
  3. Clarified defensive flags and real-world relevance referencing CVE-2025-27136 (LocalS3).
  4. Updated References section to include OffSec blog source link.

This enhances Java-specific mitigation coverage for XXE attacks.

✅ Review Checklist

  • Content is technically accurate
  • Formatting follows HackTricks style guidelines
  • Links and references are working
  • Content adds educational value
  • No sensitive information is exposed

This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.

@carlospolop
Copy link
Collaborator Author

🔗 Additional Context

Original Blog Post: https://www.offsec.com/blog/cve-2025-27136/

Content Categories: Based on the analysis, this content was categorized under "generic-hacking/xxe-injection.md".

Repository Maintenance:

  • MD Files Formatting: 860 files processed

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

@carlospolop
Copy link
Collaborator Author

merge

@carlospolop carlospolop merged commit cd8e16d into master Jul 28, 2025
@carlospolop carlospolop deleted the update_CVE-2025-27136___LocalS3_CreateBucketConfiguration_20250725_183004 branch July 28, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant