Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
contao contao
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Contao 是一款开源内容管理系统(CMS)。在版本 5.0.0 至 5.3.50 以及 5.7.12 之前,ImagesController 使用 Path::join() 将用户可控的 {path} 参数与配置的图片目标目录进行拼接,但未使用 Path::isBasePath() 验证最终规范化路径是否仍位于该目录之内。因此,攻击者可通过构造包含编码后的父目录段(如 “../”)的未认证请求,使 BinaryFileResponse 返回项目目录下任意允许扩展名(由 contao.image.valid_ex

CVSS 5.3 · Medium

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery

Affected Version Matrix 2

VendorProduct Version RangeStatus
contao contao >= 5.0.0, < 5.3.50 affected
>= 5.4.0-RC1, < 5.7.12 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-107844

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Contao: Path traversal in the images controller
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
contao contao >= 5.0.0, < 5.3.50 -

II. Public POCs for CVE-2026-107844

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-107844

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-107844 (1)

Vendor Advisories for CVE-2026-107844 (1)

Vendor Pages for CVE-2026-107844 (2)

Same Patch Batch · contao · 2026-10-09 · 7 CVEs total

CVE-2026-107845 9.3 CRITICAL Contao: Cross-site scripting in the comments bundle
CVE-2026-107842 5.3 MEDIUM Contao: Protected page content is disclosed to anonymous visitors after contao.search.inde
CVE-2026-107843 5.3 MEDIUM Contao: The registration module re-sends activation mails on any unauthenticated POST, wit
CVE-2026-107851 4.3 MEDIUM Contao: Improper access control in the table access voter
CVE-2026-107850 4.3 MEDIUM Contao: Improper access control in the preview links module
CVE-2026-107848 3.5 LOW Contao: Cross-site request forgery in custom backend actions

IV. Related Vulnerabilities

V. Comments for CVE-2026-107844

No comments yet


Leave a comment