Vulnerabilities in pkg:maven/org.jboss.resteasy/resteasy-core
PACKAGECVE-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.
pkg:maven/org.jboss.resteasy/resteasy-core
Vulnerability advisories affecting package pkg:maven/org.jboss.resteasy/resteasy-core. 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 |
| GHSA-244r-fcj3-ghjq | CVE-2021-20289 | MODERATE | Exposure of class information in RESTEasy |
| GHSA-5h26-c766-g93v | CVE-2021-20293 | HIGH | Cross-Site Scripting |
| GHSA-29qj-rvv6-qrmv | CVE-2020-10688 | MODERATE | Cross-site scripting in RESTEasy |
CVE-2023-0482 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 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.
<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-core</artifactId>
<version>5.0.6.Final</version>
</dependency>
<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-multipart-provider</artifactId>
<version>6.2.3.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>4.7.8.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
<version>3.15.5.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-core</artifactId>
<version>3.15.5.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 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
CVE-2023-0482 Affected Resteasy core Versions
8 component(s)| 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?
Which Resteasy core versions are affected?
What version fixes CVE-2023-0482?
Is resteasy-core affected?
Is resteasy-multipart-provider affected?
What is the CVSS score of CVE-2023-0482?
What CWE is associated with CVE-2023-0482?
How can I check Maven dependencies for CVE-2023-0482?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}