CVE-2026-126663 PUBLISHED

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

Assigner: VulnCheck
Reserved: 11.11.2026 Published: 11.11.2026 Updated: 16.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
CVSS Score: 5.3

Product Status

Vendor Contao
Product Contao
Versions Default: unaffected
  • affected from 4.0.0 to 5.3.54 (excl.)
  • affected from 5.4.0-RC1 to 5.7.17 (excl.)
  • affected from 6.0.0-RC1 to 6.0.6 (excl.)

Credits

  • AlpetGexha finder
  • ausi remediation developer

References

Problem Types

  • Incorrect Behavior Order: Validate Before Canonicalize CWE