# CVE-2026-107844: Contao: Path traversal in the images controller

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-10-09T19:24:02.625Z
- Modified: 2026-10-16T17:17:04.113Z
- Also known as: GHSA-mrvp-7wmx-5m4h
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- contao contao: >= 5.0.0, < 5.3.50; >= 5.4.0-RC1, < 5.7.12
- contao/core-bundle (Packagist): from 4.1.0 before 5.3.50; from 5.4.0-RC1 before 5.7.12

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `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> (web)
- <https://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd> (web)
- <https://github.com/contao/contao/releases/tag/5.3.50> (web)
- <https://github.com/contao/contao/releases/tag/5.7.12> (web)
- <https://github.com/contao/contao> (package)

## Sources

- CVE List: [CVE-2026-107844](https://www.cve.org/CVERecord?id=CVE-2026-107844), CVE Terms of Use, modified 2026-10-14
- GitHub Advisory Database: [GHSA-mrvp-7wmx-5m4h](https://github.com/advisories/GHSA-mrvp-7wmx-5m4h), CC-BY-4.0, modified 2026-10-09
- NVD: [CVE-2026-107844](https://nvd.nist.gov/vuln/detail/CVE-2026-107844), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-107844 · Whole record: https://cve.day/CVE-2026-107844.json · Rebuilt by cve.day 2026-11-25T22:59:43.355Z
