CVE-2026-107844 Details
Description
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.
A path traversal vulnerability has been identified in Contao versions 5.0.0 prior to 5.3.50 and 5.7.12. The issue arises in the ImagesController, where the user-controlled {path} parameter is joined to the target directory using Path::join(). However, it fails to verify that the resulting canonical path remains within the directory boundaries. This oversight allows an unauthenticated request with encoded parent-directory segments to access files outside the intended directory, specifically under the project directory, as long as the file extension is one of the valid image types recognized by Contao. The vulnerability can also be exploited to check the existence of arbitrary paths, with debug responses revealing absolute filesystem locations. Notably, while the route can access files with certain extensions outside the upload directory, it cannot read protected member folders due to a different issue.
Users can upgrade to Contao versions 5.3.50 or 5.7.12 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 9, 2026CISA-ADP
Assessed Oct 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd | [email protected] | Source CodeVendor |
| https://github.com/contao/contao/releases/tag/5.3.50 | [email protected] | Release NotesVendor |
| https://github.com/contao/contao/releases/tag/5.7.12 | [email protected] | Release NotesVendor |
| https://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Contao | >= 5.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Modified | CISA-ADP |
| Oct 9, 2026 | New CVE Received | [email protected] |
Volerion