CVE-2023-0482Published Feb 17, 2023 · Feb 17Updated Oct 28
Insecure Temporary File in RESTEasy
RESTEasy
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.jboss.resteasy:resteasy-core Maven |
|
|
RESTEasy
| Product | Affected | Fixed in |
|---|---|---|
| org.jboss.resteasy:resteasy-core Maven |
|
|
| org.jboss.resteasy:resteasy-multipart-provider Maven |
|
|
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.
From the CVE record · redhat
RESTEasy uses File.createTempFile() in DataSourceProvider, FileProvider and Mime4JWorkaround to create temporary files with insecure permissions. A local user could read those files; the input does not specify whether authentication or user interaction is required.
Teams using Maven org.jboss.resteasy:resteasy-core or org.jboss.resteasy:resteasy-multipart-provider should check versions before 3.15.5.Final, or in the affected 4.x, 5.x and 6.x ranges.