🔍 CVE-2026-62992

0.0
CVSS Score
UNKNOWN
2026-08-07
2026-10-24 16:10
✅ 완료

🇰🇷 한글 설명

PHP 템플릿 엔진인 Smarty의 Security::_checkDir() 함수가 심볼릭 링크를 완전히 확인하지 않아 발생하는 보안 취약점입니다. 공격자가 신뢰할 수 있는 디렉토리 내에 심볼릭 링크를 생성하면, 보안 검사를 우회하여 PHP 프로세스가 접근 가능한 임의의 파일을 읽을 수 있습니다.

💡 쉬운 설명

파일의 가짜 지름길(심볼릭 링크)을 이용해 원래 접근하면 안 되는 중요한 파일을 몰래 읽어가는 공격입니다. 보안 검사 과정에서 이 지름길이 어디로 연결되는지 제대로 확인하지 못해 발생합니다.

🇺🇸 원문 (English)

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 5.8.2 (and 4.5.7 on the 4.x line), Security::_checkDir() does not fully resolve symbolic links before validating that a requested path lies within a configured secure directory. An attacker able to place or reference a symlink within a directory Smarty treats as trusted (e.g., a template or config directory) could use it to point outside the intended secure directory, bypassing the containment check and reading arbitrary files accessible to the PHP process. This issue is fixed in versions 5.8.2 and 4.5.7.

📍 영향받는 시스템

Smarty versions prior to 5.8.2 and 4.5.7

⚔️ 공격 벡터

신뢰된 디렉토리 내에 외부 경로를 가리키는 심볼릭 링크를 생성하여 파일 읽기 권한 우회

🛡️ 대응 방법

Smarty를 5.8.2 버전 또는 4.x 라인의 4.5.7 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 5.8.2 미만이거나 4.5.7 미만인 경우 취약한 버전입니다.

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

💻 영향받는 소프트웨어

PHP