CVE-2026-107844: Contao: Path traversal in the images controller
ImagesController joins the user controlled {path} onto the configured image target directory with Path::join(), which canonicalises .. segments, and never calls Path::isBasePath() to confirm the result stayed inside that directory. An unauthenticated GET with percent encoded dot segments therefore escapes the directory and the file is returned by BinaryFileResponse. Reads are bounded to the extensions in contao.image.valid_extensions, and paths below the upload directory fail for an unrelated reason, so this is reported as a missing boundary check rather than as a general arbitrary file read. Both Apache with the shipped public/.htaccess and nginx with the documented configuration are affected.
References
- github.com/advisories/GHSA-mrvp-7wmx-5m4h
- 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
- nvd.nist.gov/vuln/detail/CVE-2026-107844
Code Behaviors & Features
Detect and mitigate CVE-2026-107844 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →