Servers and applications
CVE-2026-107844
Path traversal in the images controller
- Severity
- Medium 5.3
- Published
- 25 Aug 2026
- Last changed
- 14 Oct 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 5.3.50, 5.7.12
- Exploit chance
- 0.3% in the next 30 daysHigher than 24% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N- Also known as
- GHSA-mrvp-7wmx-5m4h
- Sources
- CVE Program, Project advisories (GitHub)
Description
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. Reads are bounded to the extensions in contao.image.valid_extensions, and paths below the upload directory fail for an unrelated reason, so this is reported as a missing boundary check rather than as a general arbitrary file read. Both Apache with the shipped public/.htaccess and nginx with the documented configuration are affected.
Any unauthenticated visitor can read files that are deliberately kept outside the document root, anywhere under the project directory, as long as the name ends in one of contao.image.valid_extensions (jpg, jpeg, gif, png, tif, tiff, bmp, svg, svgz, webp).
Affected software
| Software | Affected versions |
|---|---|
ContaoServers and applications · cna:contao|contao |
|
ContaoServers and applications · github:contao/contao |
|
About Contao
Content management system
- Share of all websites
- 0.1%W3Techs, Nov 2026
- Monthly downloads (Packagist)
- 43,303Packagist, 15 Nov 2026
- Total downloads (Packagist)
- 1,787,510Packagist, 15 Nov 2026
- GitHub stars
- 454GitHub, 15 Nov 2026
- Forks
- 180GitHub, 15 Nov 2026
- License
- GNU Lesser General Public LicenseWikidata
- Written in
- PHPWikidata
- First released
- 2006Wikidata
- First published on GitHub
- 15 Aug 2018GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 6.0 | 6.0.6 | Until 14 Feb 2027 |
| 5.7 (LTS)LTS | 5.7.17 | Until 14 Feb 2030 |
| 5.6 | 5.6.11 | Ended 14 Feb 2026 |
| 5.5 | 5.5.16 | Ended 14 Aug 2025 |
| 5.4 | 5.4.14 | Ended 14 Feb 2025 |
| 5.3 (LTS)LTS | 5.3.54 | Until 14 Feb 2028 |
From endoflife.date.
Vulnerabilities in Contao
- In our list
- 60
- Published in the last 12 months
- 30
- Critical, last 12 months
- 4
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-128335Contao before 5.3.54, 5.7.17, and 6.0.6 Session Invalidation Failure on 2FA ChangeLow 2.1 13 Nov 2026
- CVE-2026-126663Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal via Image Insert TagMedium 5.3 11 Nov 2026
- CVE-2026-126662Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Filemount Bypass via Edit-MultipleHigh 7.1 11 Nov 2026
- GHSA-xh3r-77ch-frm3Stored cross-site scripting in the file manager via crafted filenamesCritical 9.0 11 Nov 2026
- GHSA-6m74-9w88-r3fhInsert tag injection in the breadcrumb module on 404 pagesMedium 5.3 11 Nov 2026
- GHSA-5mg3-mv6j-57wcSession invalidation upon enabling or disabling 2FALow 3.7 11 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-107844
- GitHub Advisory Database https://github.com/advisories/GHSA-mrvp-7wmx-5m4h
- github.com https://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h