🔍 CVE-2026-52845

8.1
CVSS Score
HIGH
2026-06-23
2026-10-25 23:10
✅ 완료

🇰🇷 한글 설명

Caddy 서버의 forward_auth 기능에서 헤더 정규화 방식의 결함으로 인해 발생하는 취약점입니다. 공격자가 언더스코어(_)를 포함한 특수 헤더를 사용하여 인증 게이트웨이가 삭제하지 못한 헤더를 PHP/FastCGI 환경에서 동일한 변수로 변환시켜 신원 정보를 조작할 수 있습니다.

💡 쉬운 설명

해커가 이름표를 살짝 바꿔서 서버를 속이는 공격입니다. 원래는 서버가 가짜 이름표를 지워야 하는데, 특수한 기호를 사용하면 지워지지 않고 통과되어 로그인 정보를 조작할 수 있습니다.

🇺🇸 원문 (English)

Caddy is an extensible server platform that uses TLS by default. Prior to 2.11.4, forward_auth copy_headers deletes the exact client-supplied identity header before copying the trusted value from the auth gateway. But when the request later goes through php_fastcgi, Caddy normalizes HTTP headers into CGI variables by replacing - with _. This lets a client send an underscore alias that survives the forward_auth delete step but becomes the same PHP/FastCGI variable. Result: a remote client can inject or sometimes override identity/group headers trusted by PHP/FastCGI applications behind Caddy. This vulnerability is fixed in 2.11.4.

📍 영향받는 시스템

Caddy versions prior to 2.11.4

⚔️ 공격 벡터

언더스코어(_)를 포함한 HTTP 헤더를 전송하여 PHP/FastCGI의 환경 변수 주입 및 덮어쓰기 수행

🛡️ 대응 방법

Caddy를 2.11.4 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 2.11.4 미만이면 취약한 상태이며, 2.11.4 이상이면 안전합니다.

Shell / Script
caddy version | grep -E 'v2\.[0-9]+\.[0-9]+'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server