phpatch.com

← phpatch.com home

Contao: Path traversal in the images controller

Medium · CVSS 5.3

`ImagesController` joins the user controlled `{path}` onto the configured image target directory with `Path::join()`, which canonicalises `..` segments, and never calls `Path::isBasePath()` to confirm the result stayed inside that directory. An unauthenticated GET with percent encoded dot segments therefore escapes the directory and the file is returned by `BinaryFileResponse`.

Remediation

Upgrade contao/core-bundle to 5.3.50 or later. Upgrade contao/core-bundle to 5.7.12 or later.

Affected PHP branches

See the source advisory.

Check your site

Source: GitHub Global Security Advisories (Composer ecosystem) · retrieved 2026-10-22T10:19:14-04:00 · https://github.com/advisories/GHSA-mrvp-7wmx-5m4h

← All threats