Vulnerabilities in pkg:maven/io.quarkus/quarkus-keycloak-authorization

PACKAGE
Advisory Identifier: GHSA-4f4r-wgv2-jjvg
Advisory Summary

CVE-2023-4853 is a HIGH (CVSS 8.1) quarkus http vulnerable to incorrect vulnerability (CWE-148: Improper Neutralization of Input Leaders) affecting Quarkus vertx http libraries in the Maven ecosystem. The issue involves quarkus http vulnerable to incorrect evaluation of permissions. Remediation is available by upgrading affected packages to version 2.16.11.Final, 3.2.6.Final, 3.3.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.quarkus/quarkus-keycloak-authorization

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-4f4r-wgv2-jjvg CVE-2023-4853 HIGH Quarkus HTTP vulnerable to incorrect evaluation of permissions

CVE-2023-4853 at a Glance

CVE Identifier CVE-2023-4853
GHSA Identifier GHSA-4f4r-wgv2-jjvg
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-148: Improper Neutralization of Input Leaders
Affected Product Quarkus vertx http
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:N/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 None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-4853

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.16.11.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-vertx-http</artifactId>
    <version>2.16.11.Final</version>
</dependency>
io.quarkus:quarkus-vertx-http fixed: 3.2.6.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-vertx-http</artifactId>
    <version>3.2.6.Final</version>
</dependency>
io.quarkus:quarkus-vertx-http fixed: 3.3.3
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-vertx-http</artifactId>
    <version>3.3.3</version>
</dependency>
io.quarkus:quarkus-undertow fixed: 2.16.11.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-undertow</artifactId>
    <version>2.16.11.Final</version>
</dependency>
io.quarkus:quarkus-undertow fixed: 3.2.6.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-undertow</artifactId>
    <version>3.2.6.Final</version>
</dependency>
io.quarkus:quarkus-undertow fixed: 3.3.3
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-undertow</artifactId>
    <version>3.3.3</version>
</dependency>
io.quarkus:quarkus-csrf-reactive fixed: 2.16.11.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-csrf-reactive</artifactId>
    <version>2.16.11.Final</version>
</dependency>
io.quarkus:quarkus-csrf-reactive fixed: 3.2.6.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-csrf-reactive</artifactId>
    <version>3.2.6.Final</version>
</dependency>
io.quarkus:quarkus-csrf-reactive fixed: 3.3.3
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-csrf-reactive</artifactId>
    <version>3.3.3</version>
</dependency>
io.quarkus:quarkus-keycloak-authorization fixed: 2.16.11.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-keycloak-authorization</artifactId>
    <version>2.16.11.Final</version>
</dependency>
io.quarkus:quarkus-keycloak-authorization fixed: 3.2.6.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-keycloak-authorization</artifactId>
    <version>3.2.6.Final</version>
</dependency>
io.quarkus:quarkus-keycloak-authorization fixed: 3.3.3
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-keycloak-authorization</artifactId>
    <version>3.3.3</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-2023-4853, 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.16.11.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-148: Improper Neutralization of Input Leaders, where the product does not properly handle when a leading character or sequence ("leader") is missing or malformed, or if multiple leaders are used when only one should be allowed. 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

A flaw was found in Quarkus where HTTP security policies are not sanitizing certain character permutations correctly when accepting requests, resulting in incorrect evaluation of permissions. This issue could allow an attacker to bypass the security policy altogether, resulting in unauthorized endpoint access and possibly a denial of service.

CVE-2023-4853 Affected Quarkus vertx http Versions

12 component(s)
Fixed Versions:
2.16.11.Final3.2.6.Final3.3.3
Product / Package Ecosystem Affected Versions Fixed Version
io.quarkus:quarkus-vertx-http
Maven
< 2.16.11.Final
2.16.11.Final
io.quarkus:quarkus-vertx-http
Maven
≥ 3.0.0
< 3.2.6.Final
3.2.6.Final
io.quarkus:quarkus-vertx-http
Maven
≥ 3.3.0
< 3.3.3
3.3.3
io.quarkus:quarkus-undertow
Maven
< 2.16.11.Final
2.16.11.Final
io.quarkus:quarkus-undertow
Maven
≥ 3.0.0
< 3.2.6.Final
3.2.6.Final
io.quarkus:quarkus-undertow
Maven
≥ 3.3.0
< 3.3.3
3.3.3
io.quarkus:quarkus-csrf-reactive
Maven
< 2.16.11.Final
2.16.11.Final
io.quarkus:quarkus-csrf-reactive
Maven
≥ 3.0.0
< 3.2.6.Final
3.2.6.Final
io.quarkus:quarkus-csrf-reactive
Maven
≥ 3.3.0
< 3.3.3
3.3.3
io.quarkus:quarkus-keycloak-authorization
Maven
< 2.16.11.Final
2.16.11.Final
io.quarkus:quarkus-keycloak-authorization
Maven
≥ 3.0.0
< 3.2.6.Final
3.2.6.Final
io.quarkus:quarkus-keycloak-authorization
Maven
≥ 3.3.0
< 3.3.3
3.3.3

References

NVD — CVE-2023-4853 NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-4853
Quarkus vertx http Source Repository REPOSITORY
https://github.com/quarkusio/quarkus/issues/35785
Quarkus vertx http Source Repository REPOSITORY
https://github.com/quarkusio/quarkus/discussions/35940
Quarkus vertx http Source Repository REPOSITORY
https://github.com/quarkusio/quarkus
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2238034
Quarkus vertx http Security Information SECURITY
https://access.redhat.com/security/vulnerabilities/RHSB-2023-002
Quarkus vertx http Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2023-4853
access.redhat.com/errata/rhsa-2023:76... WEB
https://access.redhat.com/errata/RHSA-2023:7653
access.redhat.com/errata/rhsa-2023:61... WEB
https://access.redhat.com/errata/RHSA-2023:6112
access.redhat.com/errata/rhsa-2023:61... WEB
https://access.redhat.com/errata/RHSA-2023:6107
access.redhat.com/errata/rhsa-2023:54... WEB
https://access.redhat.com/errata/RHSA-2023:5480
access.redhat.com/errata/rhsa-2023:54... WEB
https://access.redhat.com/errata/RHSA-2023:5479
access.redhat.com/errata/rhsa-2023:54... WEB
https://access.redhat.com/errata/RHSA-2023:5446
access.redhat.com/errata/rhsa-2023:53... WEB
https://access.redhat.com/errata/RHSA-2023:5337
access.redhat.com/errata/rhsa-2023:53... WEB
https://access.redhat.com/errata/RHSA-2023:5310
access.redhat.com/errata/rhsa-2023:51... WEB
https://access.redhat.com/errata/RHSA-2023:5170
access.redhat.com/articles/11258 WEB
https://access.redhat.com/articles/11258

Frequently Asked Questions

What is CVE-2023-4853?
CVE-2023-4853 is a security vulnerability in Quarkus vertx http involving Quarkus HTTP vulnerable to incorrect evaluation of permissions under CWE-148: Improper Neutralization of Input Leaders.
Which Quarkus vertx http versions are affected?
Affected versions include releases prior to 2.16.11.Final, 3.2.6.Final, 3.3.3 across affected packages: io.quarkus:quarkus-vertx-http, io.quarkus:quarkus-undertow, io.quarkus:quarkus-csrf-reactive, io.quarkus:quarkus-keycloak-authorization.
What version fixes CVE-2023-4853?
Upgrading to 2.16.11.Final, 3.2.6.Final, 3.3.3 (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.16.11.Final, 3.2.6.Final, 3.3.3. Upgrade your dependency to 2.16.11.Final, 3.2.6.Final, 3.3.3 or later.
Is quarkus-undertow affected?
Yes, io.quarkus:quarkus-undertow is affected in releases prior to 2.16.11.Final, 3.2.6.Final, 3.3.3. Upgrade your dependency to 2.16.11.Final, 3.2.6.Final, 3.3.3 or later.
What is the CVSS score of CVE-2023-4853?
CVE-2023-4853 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-4853?
CVE-2023-4853 is classified under CWE-148: Improper Neutralization of Input Leaders (The product does not properly handle when a leading character or sequence ("leader") is missing or malformed, or if multiple leaders are used when only one should be allowed.).
How can I check Maven dependencies for CVE-2023-4853?
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-4f4r-wgv2-jjvg",
  "modified" : "2023-10-27T19:00:20Z",
  "published" : "2023-09-20T12:30:22Z",
  "aliases" : [ "CVE-2023-4853" ],
  "summary" : "Quarkus HTTP vulnerable to incorrect evaluation of permissions",
  "details" : "A flaw was found in Quarkus where HTTP security policies are not sanitizing certain character permutations correctly when accepting requests, resulting in incorrect evaluation of permissions. This issue could allow an attacker to bypass the security policy altogether, resulting in unauthorized endpoint access and possibly a denial of service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-vertx-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.16.11.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-vertx-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.6.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-vertx-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-undertow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.16.11.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-undertow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.6.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-undertow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-csrf-reactive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.16.11.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-csrf-reactive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.6.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-csrf-reactive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-keycloak-authorization"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.16.11.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-keycloak-authorization"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.6.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-keycloak-authorization"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-4853"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/issues/35785"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/discussions/35940"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quarkusio/quarkus"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2238034"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/vulnerabilities/RHSB-2023-002"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-4853"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7653"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:6112"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:6107"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:5480"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:5479"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:5446"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:5337"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:5310"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:5170"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/articles/11258"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-148", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-21T16:58:20Z",
    "nvd_published_at" : "2023-09-20T10:15:14Z"
  }
}