CVE-2026-107844: Contao - Path Traversal
- Cve: CVE-2026-107844
- Name: Contao - Path Traversal
- 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.
- Impact: Unauthenticated attackers can read arbitrary files with allowed extensions, potentially disclosing sensitive information and filesystem paths.
- Remediation: Update to versions 5.3.50 or 5.7.12 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Epss score: 0.00312
- Epss percentile: 0.24296
- Assignee: [email protected]
- Published at: 2026-10-09T20:17:10Z
- Age in days: 46
- Modified at: 2026-10-16T17:17:04Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-107844
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| contao:contao | >= 5.4.0-rc1, < 5.7.12; >= 5.0.0, < 5.3.50 | no | cna_alias_text | /v1/products/contao/contao |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| contao/contao | commit, fix, package, releases, security_advisory | yes | /v1/repositories/contao/contao |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 1935
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports