CVE-2024-23679: Lib auth Lib-auth Vulnerable To Session Fixation Vulnerability

CRITICAL
Advisory Identifier: GHSA-4m5p-5w5w-3jcf
CVSS 9.8
CWE-384
Published
Advisory Summary

CVE-2024-23679 is a CRITICAL (CVSS 9.8) lib-auth vulnerable to session fixation vulnerability (CWE-384: Session Fixation) affecting Lib auth libraries in the Maven ecosystem. The issue involves lib-auth vulnerable to session fixation. Remediation is available by upgrading affected packages to version 7.7.4.

CVE-2024-23679 at a Glance

CVE Identifier CVE-2024-23679
GHSA Identifier GHSA-4m5p-5w5w-3jcf
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-384: Session Fixation
Affected Product Lib auth
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
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-2024-23679

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

com.enonic.xp:lib-auth fixed: 7.7.4
<dependency>
    <groupId>com.enonic.xp</groupId>
    <artifactId>lib-auth</artifactId>
    <version>7.7.4</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=com.enonic.xp

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.enonic.xp

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

Note: The mvn dependency:tree -Dincludes=com.enonic.xp 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-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. In Lib auth, 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 All id-providers using lib-auth `login` method. ### Patches https://github.com/enonic/xp/commit/0189975691e9e6407a9fee87006f730e84f734ff https://github.com/enonic/xp/commit/2abac31cec8679074debc4f1fb69c25930e40842 https://github.com/enonic/xp/commit/1f44674eb9ab3fbab7103e8d08067846e88bace4 ### Workarounds Don't use lib-auth for `login`. Java API uses low-level structures and allows to invalidate previous session before auth-info is added. ### References https://github.com/enonic/xp/issues/9253

CVE-2024-23679 Affected Lib auth Versions

1 component(s)
Fixed Versions:
7.7.4
Product / Package Ecosystem Affected Versions Fixed Version
com.enonic.xp:lib-auth
Maven
< 7.7.4
7.7.4

References

Frequently Asked Questions

What is CVE-2024-23679?
CVE-2024-23679 is a security vulnerability in Lib auth involving lib-auth vulnerable to Session Fixation under CWE-384: Session Fixation.
Which Lib auth versions are affected?
Affected versions include releases prior to 7.7.4 across affected packages: com.enonic.xp:lib-auth.
What version fixes CVE-2024-23679?
Upgrading to 7.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lib-auth affected?
Yes, com.enonic.xp:lib-auth is affected in releases prior to 7.7.4. Upgrade your dependency to 7.7.4 or later.
What is the CVSS score of CVE-2024-23679?
CVE-2024-23679 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-23679?
CVE-2024-23679 is classified under CWE-384: Session Fixation (Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.).
How can I check Maven dependencies for CVE-2024-23679?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.enonic.xp'. 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-4m5p-5w5w-3jcf",
  "modified" : "2026-01-22T20:52:01Z",
  "published" : "2022-10-12T20:13:46Z",
  "aliases" : [ "CVE-2024-23679" ],
  "summary" : "com.enonic.xp:lib-auth vulnerable to Session Fixation",
  "details" : "### Impact\nAll id-providers using lib-auth `login` method.\n\n### Patches\nhttps://github.com/enonic/xp/commit/0189975691e9e6407a9fee87006f730e84f734ff\nhttps://github.com/enonic/xp/commit/2abac31cec8679074debc4f1fb69c25930e40842\nhttps://github.com/enonic/xp/commit/1f44674eb9ab3fbab7103e8d08067846e88bace4\n\n### Workarounds\nDon't use lib-auth for `login`. \nJava API uses low-level structures and allows to invalidate previous session before auth-info is added.\n\n### References\n\nhttps://github.com/enonic/xp/issues/9253",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.enonic.xp:lib-auth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.7.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/enonic/xp/security/advisories/GHSA-4m5p-5w5w-3jcf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23679"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/enonic/xp/issues/9253"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/enonic/xp/commit/0189975691e9e6407a9fee87006f730e84f734ff"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/enonic/xp/commit/1f44674eb9ab3fbab7103e8d08067846e88bace4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/enonic/xp/commit/2abac31cec8679074debc4f1fb69c25930e40842"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/enonic/xp"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-4m5p-5w5w-3jcf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-12T20:13:46Z",
    "nvd_published_at" : null
  }
}