CVE-2026-107844

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductContao/core-bundle
PublishedOct 9, 2026
First seenOct 9, 2026

How to fix

Update
  • contao/core-bundle5.3.50, 5.7.12 or later

Affected products

ProductAffected versionsFixed in
contao/core-bundlePackagist4.1.0 ≤ v < 5.3.50, 5.4.0-RC1 ≤ v < 5.7.125.3.50, 5.7.12

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.