Red Hat VEX
RHVEX-CVE-2024-56337
tomcat: Incomplete fix for CVE-2024-50379 - RCE due to TOCTOU issue in JSP compilation
Details
The fix for CVE-2024-50379 in Apache Tomcat was insufficient to mitigate the issue fully. 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, will not be fixed |
| Red Hat:enterprise_linux:9 | pki-servlet-engine | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2024-56337
- https://bugzilla.redhat.com/show_bug.cgi?id=2333521
- https://www.cve.org/CVERecord?id=CVE-2024-56337
- https://nvd.nist.gov/vuln/detail/CVE-2024-56337
- https://lists.apache.org/thread/b2b9qrgjrz1kvo4ym8y2wkfdvwoq6qbp
- https://www.cve.org/CVERecord?id=CVE-2024-50379