CVE Catalog

CVE-2026-107844

MediumCVSS 5.3
Published: Translated: NVD NIST

Summary

Contao, an Open Source CMS, versions 5.0.0 through 5.3.50 and 5.7.12, has a vulnerability in ImagesController that joins the user-controlled {path} parameter to the image target directory without verifying the canonical path stays within that directory. An unauthenticated attacker can use encoded parent-directory segments to access files under the project directory if their extensions are allowed. This issue is fixed in versions 5.3.50 and 5.7.12.

Risk Assessment

The risk is unauthorized reading of files from the project directory, potentially exposing sensitive data. Additionally, the route can reveal path existence and absolute filesystem paths in debug responses.

Recommendation

Immediately upgrade Contao to version 5.3.50 or 5.7.12, which contain the fix. Also, check for any unauthorized file access.

Other vulnerabilities in Contao

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS