Vulnerabilities in pkg:maven/org.wildfly.security/wildfly-elytron-http-oidc

PACKAGE
Advisory Identifier: GHSA-5565-3c98-g6jc
Advisory Summary

CVE-2024-12369 is a MODERATE (CVSS 4.2) wildfly elytron openid connect client vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Wildfly elytron libraries in the Maven ecosystem. The issue involves wildfly elytron openid connect client extensionoidc authorization code injection attack. Remediation is available by upgrading affected packages to version 2.2.9.Final, 2.6.2.Final.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.wildfly.security/wildfly-elytron-http-oidc

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.wildfly.security/wildfly-elytron-http-oidc. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5565-3c98-g6jc CVE-2024-12369 MODERATE WildFly Elytron OpenID Connect Client ExtensionOIDC authorization code injection attack
GHSA-jpmx-996v-48fm CVE-2023-6236 HIGH WildFly Elytron: OIDC app attempting to access the second tenant, the user should be prompted to log

CVE-2024-12369 at a Glance

CVE Identifier CVE-2024-12369
GHSA Identifier GHSA-5565-3c98-g6jc
Severity MODERATE
CVSS v3.1 Base Score 4.2
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Wildfly elytron
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.2

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:L/I:L/A:N).

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

How to Fix CVE-2024-12369

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

org.wildfly.security:wildfly-elytron fixed: 2.2.9.Final
<dependency>
    <groupId>org.wildfly.security</groupId>
    <artifactId>wildfly-elytron</artifactId>
    <version>2.2.9.Final</version>
</dependency>
org.wildfly.security:wildfly-elytron fixed: 2.6.2.Final
<dependency>
    <groupId>org.wildfly.security</groupId>
    <artifactId>wildfly-elytron</artifactId>
    <version>2.6.2.Final</version>
</dependency>
org.wildfly.security:wildfly-elytron-http-oidc fixed: 2.2.9.Final
<dependency>
    <groupId>org.wildfly.security</groupId>
    <artifactId>wildfly-elytron-http-oidc</artifactId>
    <version>2.2.9.Final</version>
</dependency>
org.wildfly.security:wildfly-elytron-http-oidc fixed: 2.6.2.Final
<dependency>
    <groupId>org.wildfly.security</groupId>
    <artifactId>wildfly-elytron-http-oidc</artifactId>
    <version>2.6.2.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=org.wildfly.security

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.wildfly.security

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

Note: The mvn dependency:tree -Dincludes=org.wildfly.security 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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Wildfly elytron, 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

### Impact A vulnerability was found in OIDC-Client. When using the elytron-oidc-client subsystem with WildFly, authorization code injection attacks can occur, allowing an attacker to inject a stolen authorization code into the attacker's own session with the client with a victim's identity. This is usually done with a Man-in-the-Middle (MitM) or phishing attack. ### Patches [2.2.9.Final](https://github.com/wildfly-security/wildfly-elytron/releases/tag/2.2.9.Final) [2.6.2.Final](https://github.com/wildfly-security/wildfly-elytron/releases/tag/2.6.2.Final) ### Workarounds Currently, no mitigation is currently available for this vulnerability. ### References https://nvd.nist.gov/vuln/detail/CVE-2024-12369 https://access.redhat.com/security/cve/CVE-2024-12369 https://bugzilla.redhat.com/show_bug.cgi?id=2331178 https://issues.redhat.com/browse/ELY-2887

CVE-2024-12369 Affected Wildfly elytron Versions

4 component(s)
Fixed Versions:
2.2.9.Final2.6.2.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.wildfly.security:wildfly-elytron
Maven
≥ 1.17.0.Final
< 2.2.9.Final
2.2.9.Final
org.wildfly.security:wildfly-elytron
Maven
≥ 2.3.0.Final
< 2.6.2.Final
2.6.2.Final
org.wildfly.security:wildfly-elytron-http-oidc
Maven
≥ 1.17.0.Final
< 2.2.9.Final
2.2.9.Final
org.wildfly.security:wildfly-elytron-http-oidc
Maven
≥ 2.3.0.Final
< 2.6.2.Final
2.6.2.Final

References

Frequently Asked Questions

What is CVE-2024-12369?
CVE-2024-12369 is a security vulnerability in Wildfly elytron involving WildFly Elytron OpenID Connect Client ExtensionOIDC authorization code injection attack under CWE-345: Insufficient Verification of Data Authenticity.
Which Wildfly elytron versions are affected?
Affected versions include releases prior to 2.2.9.Final, 2.6.2.Final across affected packages: org.wildfly.security:wildfly-elytron, org.wildfly.security:wildfly-elytron-http-oidc.
What version fixes CVE-2024-12369?
Upgrading to 2.2.9.Final, 2.6.2.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is wildfly-elytron affected?
Yes, org.wildfly.security:wildfly-elytron is affected in releases prior to 2.2.9.Final, 2.6.2.Final. Upgrade your dependency to 2.2.9.Final, 2.6.2.Final or later.
Is wildfly-elytron-http-oidc affected?
Yes, org.wildfly.security:wildfly-elytron-http-oidc is affected in releases prior to 2.2.9.Final, 2.6.2.Final. Upgrade your dependency to 2.2.9.Final, 2.6.2.Final or later.
What is the CVSS score of CVE-2024-12369?
CVE-2024-12369 has a CVSS v3.1 base score of 4.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-12369?
CVE-2024-12369 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check Maven dependencies for CVE-2024-12369?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.wildfly.security'. 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-5565-3c98-g6jc",
  "modified" : "2025-03-25T21:49:11Z",
  "published" : "2025-03-25T21:49:11Z",
  "aliases" : [ "CVE-2024-12369" ],
  "summary" : "WildFly Elytron OpenID Connect Client ExtensionOIDC authorization code injection attack",
  "details" : "### Impact\n\nA vulnerability was found in OIDC-Client. When using the elytron-oidc-client subsystem with WildFly, authorization code injection attacks can occur, allowing an attacker to inject a stolen authorization code into the attacker's own session with the client with a victim's identity. This is usually done with a Man-in-the-Middle (MitM) or phishing attack.\n\n### Patches\n\n[2.2.9.Final](https://github.com/wildfly-security/wildfly-elytron/releases/tag/2.2.9.Final)\n[2.6.2.Final](https://github.com/wildfly-security/wildfly-elytron/releases/tag/2.6.2.Final)\n\n### Workarounds\n\nCurrently, no mitigation is currently available for this vulnerability.\n\n### References\n\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-12369\nhttps://access.redhat.com/security/cve/CVE-2024-12369\t\nhttps://bugzilla.redhat.com/show_bug.cgi?id=2331178\nhttps://issues.redhat.com/browse/ELY-2887",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wildfly.security:wildfly-elytron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.0.Final"
      }, {
        "fixed" : "2.2.9.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wildfly.security:wildfly-elytron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0.Final"
      }, {
        "fixed" : "2.6.2.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wildfly.security:wildfly-elytron-http-oidc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.0.Final"
      }, {
        "fixed" : "2.2.9.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wildfly.security:wildfly-elytron-http-oidc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0.Final"
      }, {
        "fixed" : "2.6.2.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-elytron/security/advisories/GHSA-5565-3c98-g6jc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-12369"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-elytron/pull/2253"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-elytron/pull/2261"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-elytron/commit/5ac5e6bbcba58883b3cebb2ddbcec4de140c5ceb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wildfly-security/wildfly-elytron/commit/d7754f5a6a91ceb0f4dbbbfe301991f6a55404cb"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-12369"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2331178"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wildfly-security/wildfly-elytron"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/ELY-2887"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-25T21:49:11Z",
    "nvd_published_at" : null
  }
}