NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2023-0482: Insecure Temporary File in RESTEasy

mediumCVSS 3.1 5.5GHSA-2c6g-pfx3-w7h8

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.

Published Jan 15, 2025

Affected packages

org.jboss.resteasy:resteasy-core

Ecosystem
Maven
Affected
>= 6.0.0.Beta1, < 6.2.3.Final
Fixed in
6.2.3.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-core

org.jboss.resteasy:resteasy-core

Ecosystem
Maven
Affected
>= 5.0.0.Alpha1, < 5.0.6.Final
Fixed in
5.0.6.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-core

org.jboss.resteasy:resteasy-core

Ecosystem
Maven
Affected
>= 4.0.0.Beta1, < 4.7.8.Final
Fixed in
4.7.8.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-core

org.jboss.resteasy:resteasy-multipart-provider

Ecosystem
Maven
Affected
>= 6.0.0.Beta1, < 6.2.3.Final
Fixed in
6.2.3.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-multipart-provider

org.jboss.resteasy:resteasy-multipart-provider

Ecosystem
Maven
Affected
>= 5.0.0.Alpha1, < 5.0.6.Final
Fixed in
5.0.6.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-multipart-provider

org.jboss.resteasy:resteasy-multipart-provider

Ecosystem
Maven
Affected
>= 4.0.0.Beta1, < 4.7.8.Final
Fixed in
4.7.8.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-multipart-provider

org.jboss.resteasy:resteasy-multipart-provider

Ecosystem
Maven
Affected
< 3.15.4.Final
Fixed in
3.15.5.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-multipart-provider

org.jboss.resteasy:resteasy-core

Ecosystem
Maven
Affected
< 3.15.4.Final
Fixed in
3.15.5.Final
Check
mvn dependency:tree -Dincludes=org.jboss.resteasy:resteasy-core

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

  • https://nvd.nist.gov/vuln/detail/CVE-2023-0482
  • https://bugzilla.redhat.com/show_bug.cgi?id=2166004
  • https://github.com/advisories/GHSA-jrmh-v64j-mjm9

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology