CVE-2026-126663Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Contao: affected: 4.0.0 to before 5.3.54, 5.4.0-RC1 to before 5.7.17, 6.0.0-RC1 to before 6.0.6; fixed in
5.3.54,5.7.17,6.0.6
Vendor advisories:
- https://github.com/contao/contao/security/advisories/GHSA-r7cf-mfp4-r23h (vendor-advisory)
- https://github.com/contao/contao/commit/688c0f6213afbd000cd22ad0a44555eca80b40ab (patch)
- https://github.com/contao/contao/commit/0f7989eb5b28d85dcd441ef22f80f8af4f56433e (patch)
- https://github.com/contao/contao/commit/e820e3c9d79a5c07f274558513c8db08a79bf804 (patch)
- https://github.com/contao/contao/releases/tag/5.3.54 (release-notes)
- https://github.com/contao/contao/releases/tag/5.7.17 (release-notes)
References
- https://github.com/contao/contao/security/advisories/GHSA-r7cf-mfp4-r23h
- https://github.com/contao/contao/commit/688c0f6213afbd000cd22ad0a44555eca80b40ab
- https://github.com/contao/contao/commit/0f7989eb5b28d85dcd441ef22f80f8af4f56433e
- https://github.com/contao/contao/commit/e820e3c9d79a5c07f274558513c8db08a79bf804
- https://github.com/contao/contao/releases/tag/5.3.54
- https://github.com/contao/contao/releases/tag/5.7.17
- https://github.com/contao/contao/releases/tag/6.0.6
- https://github.com/contao/contao/blob/5.3.53/core-bundle/src/InsertTag/Resolver/LegacyInsertTag.php#L565-L582
- https://www.vulncheck.com/advisories/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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.