CVE-2022-4147: Quarkus vertx http Quarkus CORS Filter Allows Simple Vulnerability
HIGHCVE-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
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).
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.
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-http</artifactId>
<version>2.14.2.Final</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-http</artifactId>
<version>2.13.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=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
CVE-2022-4147 Affected Quarkus vertx http Versions
2 component(s)| 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?
Which Quarkus vertx http versions are affected?
What version fixes CVE-2022-4147?
Is quarkus-vertx-http affected?
What is the CVSS score of CVE-2022-4147?
What CWE is associated with CVE-2022-4147?
How can I check Maven dependencies for CVE-2022-4147?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}