Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal via Image Insert Tag
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 11, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 11, 2026
Description
Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 contains a path traversal vulnerability that allows content editors to read image files anywhere on the filesystem via the {{image::}} insert tag. Attackers can embed percent-encoded sequences like ..%2f that pass Validator::isInsecurePath() before rawurldecode(), making the frontend resize and serve readable image files outside the files directory.
| Product | Versions |
|---|---|
| Contao Contao | 4.0.0 to before 5.3.54 Affected5.4.0-RC1 to before 5.7.17 Affected6.0.0-RC1 to before 6.0.6 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 4.3 Medium | VulnCheck |
Weaknesses
- CWE-180 Incorrect Behavior Order: Validate Before Canonicalize
References
- GitHub Security Advisory (GHSA-r7cf-mfp4-r23h)Vendor Advisory
- https://github.com/contao/contao/commit/688c0f6213afbd000cd22ad0a44555eca80b40abPatch
- https://github.com/contao/contao/commit/0f7989eb5b28d85dcd441ef22f80f8af4f56433ePatch
- https://github.com/contao/contao/commit/e820e3c9d79a5c07f274558513c8db08a79bf804Patch
- Contao 5.3.54 Release NotesRelease Notes
- Contao 5.7.17 Release NotesRelease Notes
- Contao 6.0.6 Release NotesRelease Notes
- https://github.com/contao/contao/blob/5.3.53/core-bundle/src/InsertTag/Resolver/LegacyInsertTag.php#L565-L582Technical Details
- VulnCheck Advisory: Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal via Image Insert TagThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.