CVE-2024-24823: Graylog2 server Graylog Session Fixation Vulnerability Through Vulnerability

MODERATE
Advisory Identifier: GHSA-3xf8-g8gr-g7rh
CVSS 5.7
CWE-384
Published
Advisory Summary

CVE-2024-24823 is a MODERATE (CVSS 5.7) graylog session fixation vulnerability through vulnerability (CWE-384: Session Fixation) affecting Graylog2 server libraries in the Maven ecosystem. The issue involves graylog session fixation vulnerability through cookie injection. Remediation is available by upgrading affected packages to version 5.1.11, 5.2.4.

CVE-2024-24823 at a Glance

CVE Identifier CVE-2024-24823
GHSA Identifier GHSA-3xf8-g8gr-g7rh
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-384: Session Fixation
Affected Product Graylog2 server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.7

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-24823

To remediate this vulnerability, upgrade all affected Graylog2 server 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.graylog2:graylog2-server fixed: 5.1.11
<dependency>
    <groupId>org.graylog2</groupId>
    <artifactId>graylog2-server</artifactId>
    <version>5.1.11</version>
</dependency>
org.graylog2:graylog2-server fixed: 5.2.4
<dependency>
    <groupId>org.graylog2</groupId>
    <artifactId>graylog2-server</artifactId>
    <version>5.2.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=org.graylog2

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.graylog2

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

Note: The mvn dependency:tree -Dincludes=org.graylog2 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 Graylog2 server, 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 Reauthenticating with an existing session cookie would re-use that session id, even if for different user credentials. In this case, the pre-existing session could be used to gain elevated access to an existing Graylog login session, provided the malicious user could successfully inject their session cookie into someone else's browser. The complexity of such an attack is high, because it requires presenting a spoofed login screen and injection of a session cookie into an existing browser, potentially through an XSS attack. No such attack has been discovered. ### Patches Graylog 5.1.11 and 5.2.4, and any versions of the 6.0 development branch contain patches to not re-use sessions under any circumstances, making this type of attack impossible. ### Workarounds Using short session expiration and explicit log outs of unused sessions can help limiting the attack vector. Unpatched this vulnerability exists, but is relatively hard to exploit. A proxy could be leveraged to clear the `authentication` cookie for the Graylog server URL for the `/api/system/sessions` endpoint, as that is the only one vulnerable. Analysis provided by Fabian Yamaguchi - Whirly Labs (Pty) Ltd

CVE-2024-24823 Affected Graylog2 server Versions

2 component(s)
Fixed Versions:
5.1.115.2.4
Product / Package Ecosystem Affected Versions Fixed Version
org.graylog2:graylog2-server
Maven
≥ 4.3.0
< 5.1.11
5.1.11
org.graylog2:graylog2-server
Maven
≥ 5.2.0-alpha.1
< 5.2.4
5.2.4

References

Frequently Asked Questions

What is CVE-2024-24823?
CVE-2024-24823 is a security vulnerability in Graylog2 server involving Graylog session fixation vulnerability through cookie injection under CWE-384: Session Fixation.
Which Graylog2 server versions are affected?
Affected versions include releases prior to 5.1.11, 5.2.4 across affected packages: org.graylog2:graylog2-server.
What version fixes CVE-2024-24823?
Upgrading to 5.1.11, 5.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is graylog2-server affected?
Yes, org.graylog2:graylog2-server is affected in releases prior to 5.1.11, 5.2.4. Upgrade your dependency to 5.1.11, 5.2.4 or later.
What is the CVSS score of CVE-2024-24823?
CVE-2024-24823 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-24823?
CVE-2024-24823 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-24823?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.graylog2'. 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-3xf8-g8gr-g7rh",
  "modified" : "2024-02-07T20:24:43Z",
  "published" : "2024-02-07T18:24:20Z",
  "aliases" : [ "CVE-2024-24823" ],
  "summary" : "Graylog session fixation vulnerability through cookie injection",
  "details" : "### Impact\nReauthenticating with an existing session cookie would re-use that session id, even if for different user credentials.\nIn this case, the pre-existing session could be used to gain elevated access to an existing Graylog login session, provided the malicious user could successfully inject their session cookie into someone else's browser.\n\nThe complexity of such an attack is high, because it requires presenting a spoofed login screen and injection of a session cookie into an existing browser, potentially through an XSS attack. No such attack has been discovered.\n\n### Patches\nGraylog 5.1.11 and 5.2.4, and any versions of the 6.0 development branch contain patches to not re-use sessions under any circumstances, making this type of attack impossible.\n\n### Workarounds\nUsing short session expiration and explicit log outs of unused sessions can help limiting the attack vector. Unpatched this vulnerability exists, but is relatively hard to exploit.\nA proxy could be leveraged to clear the `authentication` cookie for the Graylog server URL for the `/api/system/sessions` endpoint, as that is the only one vulnerable.\n\nAnalysis provided by Fabian Yamaguchi - Whirly Labs (Pty) Ltd",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.graylog2:graylog2-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "5.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.graylog2:graylog2-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.2.0-alpha.1"
      }, {
        "fixed" : "5.2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Graylog2/graylog2-server/security/advisories/GHSA-3xf8-g8gr-g7rh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24823"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Graylog2/graylog2-server/commit/1596b749db86368ba476662f23a0f0c5ec2b5097"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Graylog2/graylog2-server/commit/b93a66353f35a94a4e8f3f75ac4f5cdc5a2d4a6a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Graylog2/graylog2-server"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-07T18:24:20Z",
    "nvd_published_at" : "2024-02-07T18:15:54Z"
  }
}