🔍 CVE-2019-0232

8.1
CVSS Score
HIGH
2019-04-15
2026-06-17 02:08
✅ 완료

🇰🇷 한글 설명

Apache Tomcat의 CGI Servlet에서 Windows 환경의 JRE 명령줄 인수 처리 방식의 결함으로 인해 원격 코드 실행(RCE)이 발생할 수 있는 취약점입니다. enableCmdLineArguments 옵션이 활성화된 경우 공격자가 임의의 명령을 실행할 수 있습니다.

💡 쉬운 설명

윈도우 운영체제에서 명령어를 전달할 때 발생하는 실수로 인해, 해커가 서버에 몰래 명령을 내려 컴퓨터를 마음대로 조종할 수 있는 문제입니다. 기본적으로는 꺼져 있는 기능이지만, 특정 설정을 켜두었다면 위험할 수 있습니다.

🇺🇸 원문 (English)

When running on Windows with enableCmdLineArguments enabled, the CGI Servlet in Apache Tomcat 9.0.0.M1 to 9.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93 is vulnerable to Remote Code Execution due to a bug in the way the JRE passes command line arguments to Windows. The CGI Servlet is disabled by default. The CGI option enableCmdLineArguments is disable by default in Tomcat 9.0.x (and will be disabled by default in all versions in response to this vulnerability). For a detailed explanation of the JRE behaviour, see Markus Wulftange's blog (https://codewhitesec.blogspot.com/2016/02/java-and-command-line-injections-in-windows.html) and this archived MSDN blog (https://web.archive.org/web/20161228144344/https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/).

📍 영향받는 시스템

Apache Tomcat 9.0.0.M1-9.0.17, 8.5.0-8.5.39, 7.0.0-7.0.93 (Windows 환경)

⚔️ 공격 벡터

CGI Servlet의 enableCmdLineArguments 옵션이 활성화된 상태에서 조작된 명령줄 인수를 전달하여 공격

🛡️ 대응 방법

Tomcat을 최신 보안 패치 버전으로 업데이트하거나, CGI Servlet 사용 시 enableCmdLineArguments 옵션을 비활성화함

🔧 검증 코드

현재 설치된 Tomcat의 버전을 확인하여 취약한 버전 범위에 포함되는지 대조함

Shell / Script
java -version && echo 'Check Tomcat version in release notes or pom.xml'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache Tomcat