{"id":"CVE-2026-107844","published":"2026-10-09T19:24:02Z","modified":"2026-10-14T02:10:01Z","title":"Contao: Path traversal in the images controller","vendor":"contao","product":"contao","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00931,"percentile":0.58969,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd","tags":["x_refsource_MISC"]},{"url":"https://github.com/contao/contao/releases/tag/5.3.50","tags":["x_refsource_MISC"]},{"url":"https://github.com/contao/contao/releases/tag/5.7.12","tags":["x_refsource_MISC"]}],"priority":{"score":20.5,"factors":[{"name":"EPSS percentile","points":11.79},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-107844","name":"Contao - Path Traversal via ImagesController","severity":"medium","path":"http/cves/2026/CVE-2026-107844.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-107844.yaml"}],"provenance":"source"},"vendorSlug":"contao","affectedVersions":[{"vendor":"contao","product":"contao","versions":[">= 5.0.0, < 5.3.50",">= 5.4.0-RC1, < 5.7.12"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-14T02:09:50.721997Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"contao/core-bundle","vulnerableRanges":[">=4.1.0, <5.3.50",">=5.4.0-RC1, <5.7.12"],"patched":["5.3.50","5.7.12"],"from":["GHSA-mrvp-7wmx-5m4h"],"provenance":"source"}],"summary":{"text":"The Contao open source CMS (contao/contao) contains a path traversal flaw in its ImagesController, which joins the user-controlled {path} parameter to the image target directory without verifying that the resolved path stays inside that directory. An unauthenticated remote attacker can exploit it by sending a request with encoded parent-directory segments, provided the target file uses an extension listed in contao.image.valid_extensions; this can return matching files from the project directory, and it can also reveal whether arbitrary paths exist.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:06Z"},"euvd":{"id":"EUVD-2026-95974","exploited":false,"provenance":"source"}}