CVE-2025-55749

7.5 HIGH

📋 TL;DR

This vulnerability in XWiki Jetty package (XJetty) exposes a context that allows static access to any file in the webapp/ folder. Attackers can potentially access sensitive files containing credentials. Affects XWiki instances using XJetty package within specific version ranges.

💻 Affected Systems

Products:
  • XWiki with XJetty package
Versions: 16.7.0 to 16.10.11, 17.4.4, or 17.7.0
Operating Systems: All platforms running XWiki
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects instances using the XWiki Jetty package (XJetty). Standard XWiki installations without XJetty are not affected.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers gain access to configuration files containing database credentials, API keys, or other secrets, leading to complete system compromise.

🟠

Likely Case

Unauthorized access to sensitive files containing credentials or configuration data, potentially enabling further attacks.

🟢

If Mitigated

Limited impact if proper file permissions and access controls are in place, but still exposes directory structure.

🌐 Internet-Facing: HIGH - Direct file access vulnerability that can be exploited remotely without authentication.
🏢 Internal Only: MEDIUM - Still significant risk from internal threats or compromised internal systems.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation appears straightforward - accessing specific context paths to retrieve files. No authentication required.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 16.10.11, 17.4.4, and 17.7.0

Vendor Advisory: https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-53gx-j3p6-2rw9

Restart Required: Yes

Instructions:

1. Identify your XWiki version. 2. Upgrade to fixed version: 16.10.11, 17.4.4, or 17.7.0 depending on your branch. 3. Restart XWiki service. 4. Verify the fix by checking version and testing file access.

🔧 Temporary Workarounds

Remove sensitive files from webapp/

linux

Move or remove any sensitive files containing credentials from the webapp/ directory

# Move sensitive files to secure location
mv /path/to/xwiki/webapp/*.properties /secure/location/
# Set restrictive permissions on remaining files
chmod 600 /path/to/xwiki/webapp/*

Configure web server restrictions

all

Add access restrictions to prevent direct file access through web server configuration

# Example for Apache .htaccess
Order deny,allow
Deny from all

🧯 If You Can't Patch

  • Implement strict network access controls to limit who can access the XWiki instance
  • Monitor access logs for unusual file access patterns and implement file integrity monitoring

🔍 How to Verify

Check if Vulnerable:

Check if running affected XWiki version (16.7.0-16.10.11, 17.4.4, or 17.7.0) and using XJetty package. Attempt to access files via webapp context.

Check Version:

Check XWiki administration panel or view /xwiki/bin/view/Main/About

Verify Fix Applied:

After patching, verify version is 16.10.11, 17.4.4, or 17.7.0. Test that file access via webapp context is no longer possible.

📡 Detection & Monitoring

Log Indicators:

  • Unusual access patterns to webapp/ directory files
  • Requests to context paths that shouldn't be accessible
  • Multiple failed attempts followed by successful file access

Network Indicators:

  • HTTP requests to paths containing 'webapp' or file extensions like .properties, .xml, .conf

SIEM Query:

source="xwiki_access.log" AND (uri="*webapp*" OR uri="*.properties" OR uri="*.xml" OR uri="*.conf") AND response=200

🔗 References

📤 Share & Export