漏洞描述
Contao 5.0.0 through 5.3.49 and 5.4.0 through 5.7.11 allows unauthenticated path traversal through the /assets/images/{path} route because ImagesController does not verify that a normalized path remains within the image directory. A crafted URL can retrieve project files with an allowed image extension from outside the public document root.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h↗github.comhttps://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd↗github.comhttps://github.com/contao/contao/releases/tag/5.3.50↗github.comhttps://github.com/contao/contao/releases/tag/5.7.12↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-107844↗