Vulnerabilities in pkg:maven/io.quarkus.resteasy.reactive/resteasy-reactive-common

PACKAGE
Advisory Identifier: GHSA-j75r-vf64-6rrh
Advisory Summary

CVE-2023-0481 is a LOW (CVSS 3.3) resteasy reactive implementation of quarkus vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Resteasy reactive common libraries in the Maven ecosystem. The issue involves resteasy reactive implementation of quarkus allows creation of temporary file with insecure permissions. Remediation is available by upgrading affected packages to version 3.0.0.Alpha4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.quarkus.resteasy.reactive/resteasy-reactive-common

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.quarkus.resteasy.reactive/resteasy-reactive-common. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j75r-vf64-6rrh CVE-2023-0481 LOW RestEasy Reactive implementation of Quarkus allows Creation of Temporary File With Insecure Permissions

CVE-2023-0481 at a Glance

CVE Identifier CVE-2023-0481
GHSA Identifier GHSA-j75r-vf64-6rrh
Severity LOW
CVSS v3.1 Base Score 3.3
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Resteasy reactive common
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 3.3

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:L/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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-0481

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

io.quarkus.resteasy.reactive:resteasy-reactive-common fixed: 3.0.0.Alpha4
<dependency>
    <groupId>io.quarkus.resteasy.reactive</groupId>
    <artifactId>resteasy-reactive-common</artifactId>
    <version>3.0.0.Alpha4</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=io.quarkus.resteasy.reactive

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=io.quarkus.resteasy.reactive

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

Note: The mvn dependency:tree -Dincludes=io.quarkus.resteasy.reactive 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Resteasy reactive common, 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

In RestEasy Reactive implementation of Quarkus the insecure `File.createTempFile()` is used in the `FileBodyHandler` class which creates temp files with insecure permissions that could be read by a local user.

CVE-2023-0481 Affected Resteasy reactive common Versions

1 component(s)
Fixed Versions:
3.0.0.Alpha4
Product / Package Ecosystem Affected Versions Fixed Version
io.quarkus.resteasy.reactive:resteasy-reactive-common
Maven
< 3.0.0.Alpha4
3.0.0.Alpha4

References

Frequently Asked Questions

What is CVE-2023-0481?
CVE-2023-0481 is a security vulnerability in Resteasy reactive common involving RestEasy Reactive implementation of Quarkus allows Creation of Temporary File With Insecure Permissions under CWE-668: Exposure of Resource to Wrong Sphere.
Which Resteasy reactive common versions are affected?
Affected versions include releases prior to 3.0.0.Alpha4 across affected packages: io.quarkus.resteasy.reactive:resteasy-reactive-common.
What version fixes CVE-2023-0481?
Upgrading to 3.0.0.Alpha4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is resteasy-reactive-common affected?
Yes, io.quarkus.resteasy.reactive:resteasy-reactive-common is affected in releases prior to 3.0.0.Alpha4. Upgrade your dependency to 3.0.0.Alpha4 or later.
What is the CVSS score of CVE-2023-0481?
CVE-2023-0481 has a CVSS v3.1 base score of 3.3 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-0481?
CVE-2023-0481 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check Maven dependencies for CVE-2023-0481?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.quarkus.resteasy.reactive'. 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-j75r-vf64-6rrh",
  "modified" : "2023-03-07T04:03:37Z",
  "published" : "2023-02-24T18:30:25Z",
  "aliases" : [ "CVE-2023-0481" ],
  "summary" : "RestEasy Reactive implementation of Quarkus allows Creation of Temporary File With Insecure Permissions",
  "details" : "In RestEasy Reactive implementation of Quarkus the insecure `File.createTempFile()` is used in the `FileBodyHandler` class 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:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus.resteasy.reactive:resteasy-reactive-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.0.Alpha4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0481"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/pull/30694"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/commit/95d5904f7cf18c8165b97d8ca03b203d7f69c17e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quarkusio/quarkus"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-378", "CWE-668" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-24T19:55:15Z",
    "nvd_published_at" : "2023-02-24T18:15:00Z"
  }
}