CVE-2022-4147: Quarkus vertx http Quarkus CORS Filter Allows Simple Vulnerability

HIGH
Advisory Identifier: GHSA-9895-g6x5-xwcp
CVSS 7.5
CWE-285
Published
Advisory Summary

CVE-2022-4147 is a HIGH (CVSS 7.5) quarkus cors filter allows simple vulnerability (CWE-285: Improper Authorization) affecting Quarkus vertx http libraries in the Maven ecosystem. The issue involves quarkus cors filter allows simple get and post requests with an invalid origin to proceed. Remediation is available by upgrading affected packages to version 2.14.2.Final, 2.13.5.Final.

CVE-2022-4147 at a Glance

CVE Identifier CVE-2022-4147
GHSA Identifier GHSA-9895-g6x5-xwcp
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-285: Improper Authorization
Affected Product Quarkus vertx http
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-4147

To remediate this vulnerability, upgrade all affected Quarkus vertx http 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:quarkus-vertx-http fixed: 2.14.2.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-vertx-http</artifactId>
    <version>2.14.2.Final</version>
</dependency>
io.quarkus:quarkus-vertx-http fixed: 2.13.5.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-vertx-http</artifactId>
    <version>2.13.5.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=io.quarkus

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=io.quarkus

Analyze the terminal output to locate any version of Quarkus vertx http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.14.2.Final), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.quarkus 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Quarkus vertx http, 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

Quarkus CORS filter allows simple GET and POST requests with invalid Origin to proceed. Simple GET or POST requests made with XMLHttpRequest are the ones which have no event listeners registered on the object returned by the XMLHttpRequest upload property and have no ReadableStream object used in the request.

CVE-2022-4147 Affected Quarkus vertx http Versions

2 component(s)
Fixed Versions:
2.14.2.Final2.13.5.Final
Product / Package Ecosystem Affected Versions Fixed Version
io.quarkus:quarkus-vertx-http
Maven
≥ 2.14.0.CR1
< 2.14.2.Final
2.14.2.Final
io.quarkus:quarkus-vertx-http
Maven
< 2.13.5.Final
2.13.5.Final

References

Frequently Asked Questions

What is CVE-2022-4147?
CVE-2022-4147 is a security vulnerability in Quarkus vertx http involving Quarkus CORS filter allows simple GET and POST requests with an invalid Origin to proceed under CWE-285: Improper Authorization.
Which Quarkus vertx http versions are affected?
Affected versions include releases prior to 2.14.2.Final, 2.13.5.Final across affected packages: io.quarkus:quarkus-vertx-http.
What version fixes CVE-2022-4147?
Upgrading to 2.14.2.Final, 2.13.5.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is quarkus-vertx-http affected?
Yes, io.quarkus:quarkus-vertx-http is affected in releases prior to 2.14.2.Final, 2.13.5.Final. Upgrade your dependency to 2.14.2.Final, 2.13.5.Final or later.
What is the CVSS score of CVE-2022-4147?
CVE-2022-4147 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-4147?
CVE-2022-4147 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2022-4147?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.quarkus'. 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-9895-g6x5-xwcp",
  "modified" : "2022-12-12T22:25:49Z",
  "published" : "2022-12-06T21:30:46Z",
  "aliases" : [ "CVE-2022-4147" ],
  "summary" : "Quarkus CORS filter allows simple GET and POST requests with an invalid Origin to proceed",
  "details" : "Quarkus CORS filter allows simple GET and POST requests with invalid Origin to proceed. Simple GET or POST requests made with XMLHttpRequest are the ones which have no event listeners registered on the object returned by the XMLHttpRequest upload property and have no ReadableStream object used in the request.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-vertx-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.14.0.CR1"
      }, {
        "fixed" : "2.14.2.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-vertx-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.13.5.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-4147"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2022-4147"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2148867"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quarkusio/quarkus"
  }, {
    "type" : "WEB",
    "url" : "https://quarkus.io/blog/quarkus-2-14-2-final-released"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-06T22:25:38Z",
    "nvd_published_at" : "2022-12-06T19:15:00Z"
  }
}