Disclosure summary
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.
Source-reported weakness categories
CWE-22
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
GitHub Reviewed Security Advisories · GHSA-mrvp-7wmx-5m4h
Open original source · Updated Oct 09, 2026
Contao: Path traversal in the images controller
Source severity: MEDIUM / 0
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| composer | contao/core-bundle | >= 4.1.0, < 5.3.50 | 5.3.50 |
| composer | contao/core-bundle | >= 5.4.0-RC1, < 5.7.12 | 5.7.12 |
NIST National Vulnerability Database · NVD-CVE-2026-107844
Open original source · Updated Oct 09, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
Original records & references
PUBLISHED 2026-10-09T16:17:10-04:00
MODIFIED 2026-10-09T16:17:10-04:00
INGESTED 2026-10-10T20:55:12-04:00