cvelo
P3 · MediumCVSS 4.3EPSS 0.4%

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

  • CVE-2026-126663
  • GHSA-5qc8-mv7f-47jm
  • EUVD-2026-123405

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.

Text from the CVE.org record.

Recommendation

  • Contao

    • If you run 6.0.xupdate to 6.0.6 or laterPatch update: breaking changes are unlikely
    • If you run a version from 5.4.0-RC1 to before 5.7.17update to 5.7.17 or laterMinor version change: check the release notes
    • If you run a version from 4.0.0 to before 5.3.54update to 5.3.54 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Contao

    Affected versionsFixed in
    from 6.0.0-RC1 to before 6.0.66.0.6
    from 5.4.0-RC1 to before 5.7.175.7.17
    from 4.0.0 to before 5.3.545.3.54

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.