🔍 CVE-2026-107844

5.3
CVSS Score
MEDIUM
2026-10-09
2026-10-16 17:17
✅ 완료

🇰🇷 한글 설명

오픈 소스 CMS인 Contao의 ImagesController에서 경로 검증 미흡으로 인해 발생하는 취약점입니다. 공격자가 인코딩된 상위 디렉토리 경로를 사용하여 설정된 이미지 디렉토리를 벗어나 프로젝트 내의 파일을 요청할 수 있습니다. 이 취약점은 5.3.50 및 5.7.12 버전에서 수정되었습니다.

💡 쉬운 설명

이미지 파일을 불러오는 기능의 허점을 이용해, 허용되지 않은 다른 파일을 몰래 가져오거나 서버의 파일 경로를 알아낼 수 있는 문제입니다. 공격자가 파일 경로를 조작하여 시스템 내부 정보를 훔쳐볼 위험이 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Contao CMS 5.0.0 ~ 5.3.50 및 5.7.12 미만 버전

⚔️ 공격 벡터

인코딩된 상위 디렉토리 세그먼트(..)를 포함한 {path} 파라미터를 이용한 인증되지 않은 HTTP 요청

🛡️ 대응 방법

Contao를 최신 보안 패치가 적용된 버전(5.3.50 또는 5.7.12 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 5.3.50 또는 5.7.12 이상인지 확인하여 취약 여부를 판단합니다.

Shell / Script
composer show contao/contao | grep 'versions'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

💻 영향받는 소프트웨어

Magento Open Source