GHSA-jrmh-v64j-mjm9: Duplicate Advisory Insecure Temporary File Vulnerability
MODERATEGHSA-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
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).
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.
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-core</artifactId>
<version>4.7.8.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-core</artifactId>
<version>5.0.6.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-core</artifactId>
<version>6.2.3.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
<version>4.7.8.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
<version>5.0.6.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
<version>6.2.3.Final</version>
</dependency>
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
GHSA-jrmh-v64j-mjm9 Affected Duplicate Advisory Versions
6 component(s)| 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?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-jrmh-v64j-mjm9?
Is resteasy-core affected?
Is resteasy-multipart-provider affected?
What is the CVSS score of GHSA-jrmh-v64j-mjm9?
What CWE is associated with GHSA-jrmh-v64j-mjm9?
How can I check Maven dependencies for GHSA-jrmh-v64j-mjm9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}