漏洞描述
Apache Tomcat (9.0.0.M1-9.0.97, 10.1.0-M1-10.1.33, 11.0.0-M1-11.0.1, and EOL 8.5.x) is vulnerable to a TOCTOU race condition during JSP compilation (CVE-2024-56337, an incomplete fix for CVE-2024-50379). On a case-insensitive file system, a concurrent read and upload of the same file bypasses Tomcat's case-sensitivity check, causing an uploaded file to be treated as a JSP and leading to remote code execution. Exploitation requires the default servlet to be configured with write support enabled (readonly=false), which is not the default. This template actively confirms that necessary precondition - it uploads a benign file via PUT and reads it back to prove the default servlet is write-enabled - without performing the destructive race or uploading a JSP.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。