개요
이 취약점이 무엇인지
The router redirects a request to the same URL with or without its trailing slash, or with the scheme that a route requires. To do so, the matcher returns RedirectController::urlRedirectAction() with the path info of the request as path. Since Symfony 5.4.44, 6.4.12 and 7.1.5, urlRedirectAction() turns a path that starts with // into <scheme>://..., so that protocol-relative targets configured in routes work. The path info of a request starts with // when its URI does. So these redirects send the browser to the host written at the start of the path:
GET https://app.example//evil.example/edit/ => 301 Location: https://evil.example/edit
This affects routes whose path starts with a placeholder that accepts /, like /{path}/edit with the .+ requirement. The trailing-slash redirect applies to all of them, and the scheme redirect to the ones that require a scheme. A front controller in a subdirectory doesn't prevent it.
The matcher now encodes the slash or backslash that follows the leading slash of the path it redirects to, as %2F or %5C. It also does so when tabs or newlines come in between. The target route still matches it, and protocol-relative targets configured in routes keep working.
The matchers of the Routing component encode it too before calling RedirectableUrlMatcherInterface::redirect(), so that other implementations of this method get the encoded path as well.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| symfony/framework-bundleSymfony | 5.4.44 | ≤ | 취약 | < | 5.4.57 | 5.4.57이상 |
| 6.4.12 | ≤ | 취약 | < | 6.4.51 | 6.4.51이상 | |
| 7.1.5 | ≤ | 취약 | < | 7.4.24 | 7.4.24이상 | |
| 8.0.0 | ≤ | 취약 | < | 8.1.12 | 8.1.12이상 | |
| symfony/symfonySymfony | 5.4.44 | ≤ | 취약 | < | 5.4.57 | 5.4.57이상 |
| 6.4.12 | ≤ | 취약 | < | 6.4.51 | 6.4.51이상 | |
| 7.1.5 | ≤ | 취약 | < | 7.4.24 | 7.4.24이상 | |
| 8.0.0 | ≤ | 취약 | < | 8.1.12 | 8.1.12이상 | |
할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.