Medium

Insecure Temporary File in RESTEasy

  • Disclosed: 15.01.2025
  • Updated: 11.10.2026 12:21

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:

Workarounds

There is no workaround for this issue.

References

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.jboss.resteasy:resteasy-core >= 6.0.0.Beta1, < 6.2.3.Final, >= 5.0.0.Alpha1, < 5.0.6.Final, >= 4.0.0.Beta1, < 4.7.8.Final, < 3.15.5.Final 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final
Java / Kotlin (Maven) org.jboss.resteasy:resteasy-multipart-provider >= 6.0.0.Beta1, < 6.2.3.Final, >= 5.0.0.Alpha1, < 5.0.6.Final, >= 4.0.0.Beta1, < 4.7.8.Final, < 3.15.5.Final 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final

References

CVSS score 5.5/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-378
Platform
Java / Kotlin (Maven)
Package
org.jboss.resteasy:resteasy-core, org.jboss.resteasy:resteasy-multipart-provider
Disclosed
15.01.2025
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-2c6g-pfx3-w7h8 - CC BY 4.0

Vulnerability history: org.jboss.resteasy:resteasy-core

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
04.2021 01.2025
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 3

Disclosures per year

  1. 2021: 3
  2. 2022: 0
  3. 2023: 0
  4. 2024: 0
  5. 2025: 1
  6. 2026: 0
  1. Insecure Temporary File in RESTEasy this entry
    Medium · 5.5 CVE-2023-0482 >= 6.0.0.Beta1, < 6.2.3.Final, >= 5.0.0.Alpha1, < 5.0.6.Final, >= 4.0.0.Beta1, < 4.7.8.Final, < 3.15.5.Final 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final
  2. Medium · 5.4 CVE-2020-10688 < 3.11.1.Final, >= 4.0.0, < 4.5.3.Final 3.11.1.Final, 4.5.3.Final
  3. High · 6.1 CVE-2021-20293 <= 4.6.0.Final no fix
  4. Medium · 5.3 CVE-2021-20289 >= 4.6.0, < 4.6.1, >= 4.0.0, < 4.5.10, >= 3.0.0, < 3.16.0 4.6.1, 4.5.10, 3.16.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.