🔍 CVE-2026-61450

6.5
CVSS Score
MEDIUM
2026-07-10
2026-10-08 16:17
✅ 완료

🇰🇷 한글 설명

Grav 2.0.2 미만 버전에서 Twig 샌드박스를 우회하여 설정 비밀 정보를 탈취할 수 있는 취약점이 발견되었습니다. 페이지 작성 권한이 있는 사용자가 특정 메서드를 통해 실제 Config 객체에 접근한 뒤, 객체 직렬화 함수를 사용하여 SMTP 자격 증명이나 API 키와 같은 민감한 정보를 추출할 수 있습니다.

💡 쉬운 설명

웹사이트 관리 권한이 있는 사람이 보안 장치를 속여서 시스템의 중요한 비밀번호나 API 키를 몰래 빼낼 수 있는 문제입니다. 원래는 접근이 막혀 있어야 할 설정 정보가 특정 우회 방법을 통해 그대로 노출됩니다.

🇺🇸 원문 (English)

Grav before 2.0.2 contains a Twig sandbox bypass that allows a page author (any admin.pages user, or anyone able to write to user/pages) to exfiltrate configuration secrets. Although the sandbox replaces the 'config' variable with a redacted facade and strips Config::get/toArray from the method allowlist, the raw container remains accessible via the allow-listed grav.offsetGet('config'), which returns the real Config object. Allow-listed object-dumping filters (json_encode, print_r, yaml_encode) then serialize that object at the PHP level without invoking the sandbox method gate, exposing the full config tree including plugin secrets such as SMTP credentials, API keys, and plugin DB credentials. This is an incomplete fix for GHSA-j274-39qw-32c9.

📍 영향받는 시스템

Grav CMS versions before 2.0.2

⚔️ 공격 벡터

권한이 있는 페이지 작성자가 Twig 샌드박스 우회 기법을 사용하여 설정 객체를 직렬화하고 정보를 탈취

🛡️ 대응 방법

Grav CMS를 2.0.2 버전 이상으로 즉시 업데이트하십시오.

🔧 검증 코드

출력된 버전 정보가 2.0.2 미만(예: 2.0.1, 1.x 등)이면 취약한 상태입니다.

Shell / Script
composer show grav/core | grep 'versions'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP