CVE-2023-0482
Insecure Temporary File in RESTEasy
Description
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
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jboss.resteasy » resteasy-core | < 3.15.5.Final>= 4.0.0.Beta1, < 4.7.8.Final>= 5.0.0.Alpha1, < 5.0.6.Final>= 6.0.0.Beta1, < 6.2.3.Final | 3.15.5.Final, 4.7.8.Final, 5.0.6.Final, 6.2.3.Final |
| org.jboss.resteasy » resteasy-multipart-provider | < 3.15.5.Final>= 4.0.0.Beta1, < 4.7.8.Final>= 5.0.0.Alpha1, < 5.0.6.Final>= 6.0.0.Beta1, < 6.2.3.Final | 3.15.5.Final, 4.7.8.Final, 5.0.6.Final, 6.2.3.Final |
Blast radius
60% of the dependent artifacts (1,572) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 10,816 |
| 2 hops | 32,438 |
| 3 hops | 20,828 |
| 4 hops | 14,508 |
| 5 hops | 4,492 |
| 6 hops | 1,235 |
Most used dependents
- io.quarkus » quarkus-resteasy1,251 usages
- org.jboss.resteasy » resteasy-client895 usages
- io.quarkus » quarkus-resteasy-jackson543 usages
- io.quarkus » quarkus-smallrye-openapi419 usages
- org.wildfly » wildfly-feature-pack372 usages
- org.jboss.resteasy » resteasy-multipart-provider336 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- io.quarkus » quarkus-resteasy-jsonb231 usages
- io.quarkus » quarkus-vertx229 usages
- org.keycloak » keycloak-services223 usages
- org.keycloak » keycloak-admin-client216 usages
- io.quarkus » quarkus-rest-client212 usages
- io.quarkus » quarkus-rest-client-jackson198 usages
- org.jboss.resteasy » resteasy-cdi198 usages
- io.quarkus » quarkus-vertx-deployment163 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/resteasy/resteasy/security/advisories/GHSA-2c6g-pfx3-w7h8
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-0482
- Webhttps://github.com/resteasy/resteasy/pull/3409
- Webhttps://github.com/resteasy/resteasy/pull/3409/commits/807d7456f2137cde8ef7c316707211bf4e542d56
- Webhttps://github.com/resteasy/resteasy/pull/3410
- Webhttps://github.com/resteasy/resteasy/pull/3412
- Webhttps://github.com/resteasy/resteasy/pull/3413
- Webhttps://github.com/resteasy/resteasy/pull/3423
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=2166004
- Webhttps://github.com/orgs/resteasy/discussions/3415
- Webhttps://github.com/orgs/resteasy/discussions/3504
- Webhttps://github.com/orgs/resteasy/discussions/3506
- Packagehttps://github.com/resteasy/resteasy
- Webhttps://issues.redhat.com/browse/RESTEASY-3286
- Webhttps://security.netapp.com/advisory/ntap-20230427-0001
