CVE-2026-107844
Contao is an Open Source CMS. From version 5.0.0 until 5.3.50 and …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd
- github.com/contao/contao/releases/tag/5.3.50
- github.com/contao/contao/releases/tag/5.7.12
- github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h
- github.com/advisories/GHSA-mrvp-7wmx-5m4h
- nvd.nist.gov/vuln/detail/CVE-2026-107844
- cve.org/CVERecord?id=CVE-2026-107844
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.