CVE-2024-23679: Lib auth Lib-auth Vulnerable To Session Fixation Vulnerability
CRITICALCVE-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
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).
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.
<dependency>
<groupId>com.enonic.xp</groupId>
<artifactId>lib-auth</artifactId>
<version>7.7.4</version>
</dependency>
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
CVE-2024-23679 Affected Lib auth Versions
1 component(s)| 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?
Which Lib auth versions are affected?
What version fixes CVE-2024-23679?
Is lib-auth affected?
What is the CVSS score of CVE-2024-23679?
What CWE is associated with CVE-2024-23679?
How can I check Maven dependencies for CVE-2024-23679?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}