Red Hat VEX
RHVEX-CVE-2024-50379
tomcat: RCE due to TOCTOU issue in JSP compilation
Details
A flaw was found in Tomcat. A Time-of-check Time-of-use (TOCTOU) race condition occurs during JSP compilation on case-insensitive file systems when the default servlet is enabled for writing. This vulnerability allows an uploaded file to be treated as a JSP and executed, resulting in remote code execution.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | pki-servlet-4.0-api | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | pki-servlet-engine | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | pki-servlet-4.0-api | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | pki-servlet-engine | All versions, no fix yet |