GHSA-jrmh-v64j-mjm9: Duplicate Advisory Insecure Temporary File Vulnerability

MODERATE
CVSS 5.5
CWE-378
Published
Advisory Summary

GHSA-jrmh-v64j-mjm9 is a MODERATE (CVSS 5.5) insecure temporary file vulnerability (CWE-378: Creation of Temporary File With Insecure Permissions) affecting Duplicate Advisory libraries in the Maven ecosystem. The issue involves insecure temporary file in resteasy. Remediation is available by upgrading affected packages to version 4.7.8.Final, 5.0.6.Final, 6.2.3.Final.

GHSA-jrmh-v64j-mjm9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jrmh-v64j-mjm9
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-378: Creation of Temporary File With Insecure Permissions
Affected Product Duplicate Advisory
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 GHSA-jrmh-v64j-mjm9

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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: 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-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: 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-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: 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: 6.2.3.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-multipart-provider</artifactId>
    <version>6.2.3.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 GHSA-jrmh-v64j-mjm9, 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 Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.7.8.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 Duplicate Advisory, 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

# Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-2c6g-pfx3-w7h8. This link is maintained to preserve external references. # Original 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.

GHSA-jrmh-v64j-mjm9 Affected Duplicate Advisory Versions

6 component(s)
Fixed Versions:
4.7.8.Final5.0.6.Final6.2.3.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.jboss.resteasy:resteasy-core
Maven
< 4.7.8.Final
4.7.8.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
≥ 6.0.0.Beta1
< 6.2.3.Final
6.2.3.Final
org.jboss.resteasy:resteasy-multipart-provider
Maven
< 4.7.8.Final
4.7.8.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
≥ 6.0.0.Beta1
< 6.2.3.Final
6.2.3.Final

References

Frequently Asked Questions

What is GHSA-jrmh-v64j-mjm9?
GHSA-jrmh-v64j-mjm9 is a security vulnerability in Duplicate Advisory involving Insecure Temporary File in RESTEasy under CWE-378: Creation of Temporary File With Insecure Permissions.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 4.7.8.Final, 5.0.6.Final, 6.2.3.Final across affected packages: org.jboss.resteasy:resteasy-core, org.jboss.resteasy:resteasy-multipart-provider.
What version fixes GHSA-jrmh-v64j-mjm9?
Upgrading to 4.7.8.Final, 5.0.6.Final, 6.2.3.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 4.7.8.Final, 5.0.6.Final, 6.2.3.Final. Upgrade your dependency to 4.7.8.Final, 5.0.6.Final, 6.2.3.Final or later.
Is resteasy-multipart-provider affected?
Yes, org.jboss.resteasy:resteasy-multipart-provider is affected in releases prior to 4.7.8.Final, 5.0.6.Final, 6.2.3.Final. Upgrade your dependency to 4.7.8.Final, 5.0.6.Final, 6.2.3.Final or later.
What is the CVSS score of GHSA-jrmh-v64j-mjm9?
GHSA-jrmh-v64j-mjm9 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 GHSA-jrmh-v64j-mjm9?
GHSA-jrmh-v64j-mjm9 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 GHSA-jrmh-v64j-mjm9?
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-jrmh-v64j-mjm9",
  "modified" : "2025-01-15T18:56:33Z",
  "published" : "2023-02-18T00:31:59Z",
  "withdrawn" : "2025-01-15T18:56:33Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Insecure Temporary File in RESTEasy",
  "details" : "# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2c6g-pfx3-w7h8. This link is maintained to preserve external references.\n\n# Original Description\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.",
  "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" : "0"
      }, {
        "fixed" : "4.7.8.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" : "6.0.0.Beta1"
      }, {
        "fixed" : "6.2.3.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-multipart-provider"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.7.8.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" : "6.0.0.Beta1"
      }, {
        "fixed" : "6.2.3.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0482"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/3409/commits/807d7456f2137cde8ef7c316707211bf4e542d56"
  }, {
    "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" : "2023-02-18T02:18:19Z",
    "nvd_published_at" : "2023-02-17T22:15:00Z"
  }
}