Description
There exists a race condition between the deletion of the temporary file and the creation of the temporary directory in `webkit` subproject of HTML/Java API version 1.7. A similar vulnerability has recently been disclosed in other Java projects and the fix in HTML/Java API version 1.7.1 follows theirs: To avoid local privilege escalation version 1.7.1 creates the temporary directory atomically without dealing with the temporary file: https://github.com/apache/netbeans-html4j/commit/fa70e507e5555e1adb4f6518479fc408a7abd0e6
Remediation
References
https://lists.apache.org/thread.html/ra6119c0cdfccf051a846fa11b61364f5df9e7db93c310706a947f86a%40%3Cdev.netbeans.apache.org%3E
Related Vulnerabilities
CVE-2021-30638 Vulnerability in maven package org.apache.tapestry:tapestry-core
CVE-2021-36374 Vulnerability in maven package org.apache.ant:ant
CVE-2021-43841 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore
CVE-2023-37947 Vulnerability in maven package org.openshift.jenkins:openshift-login
CVE-2019-0193 Vulnerability in maven package org.apache.solr:solr-dataimporthandler