Vulnerabilities in pkg:maven/org.jboss.resteasy/resteasy-multipart-provider

PACKAGE
Advisory Identifier: GHSA-2c6g-pfx3-w7h8
Advisory Summary

CVE-2023-0482 is a MODERATE (CVSS 5.5) insecure temporary file vulnerability (CWE-378: Creation of Temporary File With Insecure Permissions) affecting Resteasy core libraries in the Maven ecosystem. The issue involves insecure temporary file in resteasy. Remediation is available by upgrading affected packages to version 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jboss.resteasy/resteasy-multipart-provider

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jboss.resteasy/resteasy-multipart-provider. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2c6g-pfx3-w7h8 CVE-2023-0482 MODERATE Insecure Temporary File in RESTEasy
GHSA-jrmh-v64j-mjm9 - MODERATE Duplicate Advisory: Insecure Temporary File in RESTEasy

CVE-2023-0482 at a Glance

CVE Identifier CVE-2023-0482
GHSA Identifier GHSA-2c6g-pfx3-w7h8
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-378: Creation of Temporary File With Insecure Permissions
Affected Product Resteasy core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-0482

To remediate this vulnerability, upgrade all affected Resteasy core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jboss.resteasy:resteasy-core fixed: 6.2.3.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-core</artifactId>
    <version>6.2.3.Final</version>
</dependency>
org.jboss.resteasy:resteasy-core fixed: 5.0.6.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-core</artifactId>
    <version>5.0.6.Final</version>
</dependency>
org.jboss.resteasy:resteasy-core fixed: 4.7.8.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-core</artifactId>
    <version>4.7.8.Final</version>
</dependency>
org.jboss.resteasy:resteasy-multipart-provider fixed: 6.2.3.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-multipart-provider</artifactId>
    <version>6.2.3.Final</version>
</dependency>
org.jboss.resteasy:resteasy-multipart-provider fixed: 5.0.6.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-multipart-provider</artifactId>
    <version>5.0.6.Final</version>
</dependency>
org.jboss.resteasy:resteasy-multipart-provider fixed: 4.7.8.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-multipart-provider</artifactId>
    <version>4.7.8.Final</version>
</dependency>
org.jboss.resteasy:resteasy-multipart-provider fixed: 3.15.5.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-multipart-provider</artifactId>
    <version>3.15.5.Final</version>
</dependency>
org.jboss.resteasy:resteasy-core fixed: 3.15.5.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-core</artifactId>
    <version>3.15.5.Final</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jboss.resteasy

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-0482, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jboss.resteasy

Analyze the terminal output to locate any version of Resteasy core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.2.3.Final), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jboss.resteasy command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-378: Creation of Temporary File With Insecure Permissions, where opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack. In Resteasy core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2023-0482 Affected Resteasy core Versions

8 component(s)
Fixed Versions:
6.2.3.Final5.0.6.Final4.7.8.Final3.15.5.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.jboss.resteasy:resteasy-core
Maven
≥ 6.0.0.Beta1
< 6.2.3.Final
6.2.3.Final
org.jboss.resteasy:resteasy-core
Maven
≥ 5.0.0.Alpha1
< 5.0.6.Final
5.0.6.Final
org.jboss.resteasy:resteasy-core
Maven
≥ 4.0.0.Beta1
< 4.7.8.Final
4.7.8.Final
org.jboss.resteasy:resteasy-multipart-provider
Maven
≥ 6.0.0.Beta1
< 6.2.3.Final
6.2.3.Final
org.jboss.resteasy:resteasy-multipart-provider
Maven
≥ 5.0.0.Alpha1
< 5.0.6.Final
5.0.6.Final
org.jboss.resteasy:resteasy-multipart-provider
Maven
≥ 4.0.0.Beta1
< 4.7.8.Final
4.7.8.Final
org.jboss.resteasy:resteasy-multipart-provider
Maven
< 3.15.5.Final
3.15.5.Final
org.jboss.resteasy:resteasy-core
Maven
< 3.15.5.Final
3.15.5.Final

References

Frequently Asked Questions

What is CVE-2023-0482?
CVE-2023-0482 is a security vulnerability in Resteasy core involving Insecure Temporary File in RESTEasy under CWE-378: Creation of Temporary File With Insecure Permissions.
Which Resteasy core versions are affected?
Affected versions include releases prior to 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final across affected packages: org.jboss.resteasy:resteasy-core, org.jboss.resteasy:resteasy-multipart-provider.
What version fixes CVE-2023-0482?
Upgrading to 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is resteasy-core affected?
Yes, org.jboss.resteasy:resteasy-core is affected in releases prior to 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final. Upgrade your dependency to 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final or later.
Is resteasy-multipart-provider affected?
Yes, org.jboss.resteasy:resteasy-multipart-provider is affected in releases prior to 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final. Upgrade your dependency to 6.2.3.Final, 5.0.6.Final, 4.7.8.Final, 3.15.5.Final or later.
What is the CVSS score of CVE-2023-0482?
CVE-2023-0482 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-0482?
CVE-2023-0482 is classified under CWE-378: Creation of Temporary File With Insecure Permissions (Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.).
How can I check Maven dependencies for CVE-2023-0482?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jboss.resteasy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2c6g-pfx3-w7h8",
  "modified" : "2025-01-15T18:56:57Z",
  "published" : "2025-01-15T18:56:57Z",
  "aliases" : [ "CVE-2023-0482" ],
  "summary" : "Insecure Temporary File in RESTEasy",
  "details" : "### Impact\nIn 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.\n\n### Patches\nFixed in the following pull requests:\n\n* https://github.com/resteasy/resteasy/pull/3409 (7.0.0.Alpha1)\n* https://github.com/resteasy/resteasy/pull/3423 (6.2.3.Final)\n* https://github.com/resteasy/resteasy/pull/3412 (5.0.6.Final)\n* https://github.com/resteasy/resteasy/pull/3413 (4.7.8.Final)\n* https://github.com/resteasy/resteasy/pull/3410 (3.15.5.Final)\n\n### Workarounds\nThere is no workaround for this issue.\n\n### References\n* https://nvd.nist.gov/vuln/detail/CVE-2023-0482\n* https://bugzilla.redhat.com/show_bug.cgi?id=2166004\n* https://github.com/advisories/GHSA-jrmh-v64j-mjm9\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0.Beta1"
      }, {
        "fixed" : "6.2.3.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0.Alpha1"
      }, {
        "fixed" : "5.0.6.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0.Beta1"
      }, {
        "fixed" : "4.7.8.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-multipart-provider"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0.Beta1"
      }, {
        "fixed" : "6.2.3.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-multipart-provider"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0.Alpha1"
      }, {
        "fixed" : "5.0.6.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-multipart-provider"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0.Beta1"
      }, {
        "fixed" : "4.7.8.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-multipart-provider"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.15.5.Final"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 3.15.4.Final"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.15.5.Final"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 3.15.4.Final"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/security/advisories/GHSA-2c6g-pfx3-w7h8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0482"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/3409"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/3409/commits/807d7456f2137cde8ef7c316707211bf4e542d56"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/3410"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/3412"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/3413"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/3423"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2166004"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orgs/resteasy/discussions/3415"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orgs/resteasy/discussions/3504"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orgs/resteasy/discussions/3506"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/resteasy/resteasy"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/RESTEASY-3286"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20230427-0001"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-378" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-15T18:56:57Z",
    "nvd_published_at" : null
  }
}