CVE-2026-107844
mediumContao is an Open Source CMS.
Contao is an Open Source CMS. From version 5.0.0 until 5.3.50 and 5.7.12, ImagesController joins the user-controlled {path} parameter to the configured image target directory with Path::join() but does not use Path::isBasePath() to verify that the canonical path remains inside that directory. An unauthenticated request containing encoded parent-directory segments can therefore return files under the project directory through BinaryFileResponse when their names use an extension allowed by contao.image.valid_extensions. The route can also reveal whether arbitrary paths exist, and debug responses can disclose absolute filesystem paths, but paths below the upload directory were not shown to be readable. This issue is fixed in versions 5.3.50 and 5.7.12.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd security-advisories@github.com
- https://github.com/contao/contao/releases/tag/5.3.50 security-advisories@github.com
- https://github.com/contao/contao/releases/tag/5.7.12 security-advisories@github.com
- https://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h security-advisories@github.com
