Vulnerability · Published Oct 9, 2026 · Assigned by GitHub_M
CVE-2026-107844Contao: Path traversal in the images controller
Medium 5.3
In plain English
A medium-severity path traversal in contao from contao. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | contao/core-bundle | 5.3.50 | GHSA-mrvp-7wmx-5m4h |
| Packagist | contao/core-bundle | 5.7.12 | GHSA-mrvp-7wmx-5m4h |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h x_refsource_CONFIRM
- https://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd x_refsource_MISC
- https://github.com/contao/contao/releases/tag/5.3.50 x_refsource_MISC
- https://github.com/contao/contao/releases/tag/5.7.12 x_refsource_MISC