Insecure temporary files In org.jboss.resteasy:resteasy-multipart-provider
Description
Insecure Temporary File in RESTEasy
Impact
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.
Patches
Fixed in the following pull requests:
https://github.com/resteasy/resteasy/pull/3409 (7.0.0.Alpha1)
https://github.com/resteasy/resteasy/pull/3423 (6.2.3.Final)
https://github.com/resteasy/resteasy/pull/3412 (5.0.6.Final)
https://github.com/resteasy/resteasy/pull/3413 (4.7.8.Final)
https://github.com/resteasy/resteasy/pull/3410 (3.15.5.Final)
Workarounds
There is no workaround for this issue.
References
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
maven | 6.2.3.final, 5.0.6.final, 4.7.8.final, 3.15.5.final | ||
maven | 6.2.3.final, 5.0.6.final, 4.7.8.final, 3.15.5.final | ||
maven | - | ||
debian 11 | - | ||
debian 12 | - | ||
debian 13 | - | ||
debian 14 | - | ||
rpm rhel8 | - | - | |
rpm rhel9 | - | - |
Aliases
References