RESTEasy insecure temp file creation via File.createTempFile()
CVE-2023-0482 Published on February 17, 2023
In RESTEasy the insecure File.createTempFile() is used in the DataSourceProvider, FileProvider and Mime4JWorkaround classes which creates temp files with insecure permissions that could be read by a local user.
Vulnerability Analysis
CVE-2023-0482 is exploitable with local system access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity and availability.
Weakness Type
Creation of Temporary File With Insecure Permissions
Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.
Products Associated with CVE-2023-0482
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-0482 are published in these products:
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-0482
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.jboss.resteasy:resteasy-multipart-provider | >= 5.0.0.Alpha1, < 5.0.6.Final | 5.0.6.Final |
| maven | org.jboss.resteasy:resteasy-core | < 3.15.4.Final | 3.15.5.Final |
| maven | org.jboss.resteasy:resteasy-multipart-provider | < 3.15.4.Final | 3.15.5.Final |
| maven | org.jboss.resteasy:resteasy-multipart-provider | >= 4.0.0.Beta1, < 4.7.8.Final | 4.7.8.Final |
| maven | org.jboss.resteasy:resteasy-multipart-provider | >= 6.0.0.Beta1, < 6.2.3.Final | 6.2.3.Final |
| maven | org.jboss.resteasy:resteasy-core | >= 4.0.0.Beta1, < 4.7.8.Final | 4.7.8.Final |
| maven | org.jboss.resteasy:resteasy-core | >= 5.0.0.Alpha1, < 5.0.6.Final | 5.0.6.Final |
| maven | org.jboss.resteasy:resteasy-core | >= 6.0.0.Beta1, < 6.2.3.Final | 6.2.3.Final |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.