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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.3%top 75.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Packagistcontao/core-bundle5.3.50GHSA-mrvp-7wmx-5m4h
Packagistcontao/core-bundle5.7.12GHSA-mrvp-7wmx-5m4h

Affected products (as reported)

VendorProductVersions
contao contao >= 5.0.0, < 5.3.50>= 5.4.0-RC1, < 5.7.12

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References