🔍 CVE-2025-41242

5.9
CVSS Score
MEDIUM
2025-08-18
2026-06-17 09:22
✅ 완료

🇰🇷 한글 설명

Spring Framework MVC 애플리케이션이 표준 Servlet 컨테이너에 배포될 때 경로 순환 취약점에 노출될 수 있습니다. WAR 배포, Servlet 컨테이너의 보안 검증 미흡, Spring 리소스 처리 기능이 모두 충족되면 공격자가 의도하지 않은 파일에 접근 가능합니다.

💡 쉬운 설명

웹서버에서 특수한 경로 문자(../ 등)를 이용해 접근 금지된 파일에 도달할 수 있는 문제입니다. Apache Tomcat이나 Eclipse Jetty의 기본 설정에서는 안전하지만 다른 서버에서는 위험할 수 있습니다.

🇺🇸 원문 (English)

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant Servlet container. An application can be vulnerable when all the following are true: * the application is deployed as a WAR or with an embedded Servlet container * the Servlet container does not reject suspicious sequences https://jakarta.ee/specifications/servlet/6.1/jakarta-servlet-spec-6.1.html#uri-path-canonicalization * the application serves static resources https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-config/static-resources.html#page-title  with Spring resource handling We have verified that applications deployed on Apache Tomcat or Eclipse Jetty are not vulnerable, as long as default security features are not disabled in the configuration. Because we cannot check exploits against all Servlet containers and configuration variants, we strongly recommend upgrading your application.

📍 영향받는 시스템

Spring Framework MVC를 사용하는 WAR 배포 애플리케이션 또는 내장 Servlet 컨테이너 (Tomcat/Jetty 제외)

⚔️ 공격 벡터

경로 순환 문자를 포함한 특수 URI(예: ../../ 등)를 정적 리소스 요청에 포함시켜 허용되지 않은 파일 접근

🛡️ 대응 방법

Spring Framework를 최신 버전으로 업그레이드하고 기본 보안 기능 활성화 유지

🔧 검증 코드

spring-webmvc의 JAR 파일이 존재하면 경로를 확인하고, 파일명의 버전 번호로 업그레이드 필요 여부 판단

Shell / Script
find . -name 'spring-webmvc-*.jar' 2>/dev/null | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache Tomcat