🔍 CVE-2025-61795

5.3
CVSS Score
MEDIUM
2025-10-27
2026-10-08 11:10
✅ 완료

🇰🇷 한글 설명

Apache Tomcat에서 multipart 업로드 처리 중 오류 발생 시 디스크에 작성된 임시 파일이 즉시 삭제되지 않고 가비지 컬렉션 완료 시까지 남아있는 취약점입니다. JVM 설정과 애플리케이션 부하에 따라 임시 파일이 GC 속도보다 빠르게 쌓여 디스크 공간 부족으로 인한 서비스 거부가 발생할 수 있습니다.

💡 쉬운 설명

파일을 업로드할 때 오류가 발생하면 임시 파일들이 제때 지워지지 않아 계속 쌓입니다. 이로 인해 디스크 공간이 가득 차서 웹 서버가 작동하지 않을 수 있습니다.

🇺🇸 원문 (English)

Improper Resource Shutdown or Release vulnerability in Apache Tomcat. If an error occurred (including exceeding limits) during the processing of a multipart upload, temporary copies of the uploaded parts written to disc were not cleaned up immediately but left for the garbage collection process to delete. Depending on JVM settings, application memory usage and application load, it was possible that space for the temporary copies of uploaded parts would be filled faster than GC cleared it, leading to a DoS. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.11, from 10.1.0-M1 through 10.1.46, from 9.0.0.M1 through 9.0.109. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. Users are recommended to upgrade to version 11.0.12 or later, 10.1.47 or later or 9.0.110 or later which fixes the issue.

📍 영향받는 시스템

Apache Tomcat 11.0.0-M1~11.0.11, 10.1.0-M1~10.1.46, 9.0.0-M1~9.0.109, 8.5.0~8.5.100

⚔️ 공격 벡터

multipart 파일 업로드 요청을 반복해서 오류를 유발시켜 임시 파일을 쌓아올려 디스크 공간 소진

🛡️ 대응 방법

Apache Tomcat을 11.0.12 이상, 10.1.47 이상 또는 9.0.110 이상으로 업그레이드

🔧 검증 코드

Tomcat의 설치 경로($CATALINA_HOME)에서 버전 정보를 확인하여 영향받는 버전 범위에 속하는지 검증

Shell / Script
ls -la $CATALINA_HOME/catalina.sh | awk '{print $NF}' && grep -oP 'CATALINA_VERSION=\K[^"]*' $CATALINA_HOME/bin/catalina.sh 2>/dev/null || cat $CATALINA_HOME/lib/catalina.jar | unzip -p 2>/dev/null | strings | grep -i 'version' | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache Tomcat