Path traversal in Contao - CVE-2026-126663
Published: November 11, 2026 / Updated: November 13, 2026
Vulnerability details
The vulnerability allows a remote user to disclose the visual content of image-type files outside their granted files/ scope, including above the project root.
The vulnerability exists due to path traversal in Contao's image insert tag when validating raw paths before percent-decoding without enforcing base-directory containment in ImageFactory::create(). A remote user can supply a percent-encoded traversal path through the {{image::*}} insert tag as a content editor to make the server read, resize and serve image-type files outside the permitted directory.