CVE-2023-32997: Cas plugin Jenkins CAS Plugin Session Fixation Vulnerability

HIGH
Advisory Identifier: GHSA-hjh8-9gxh-cx4x
CVSS 8.8
CWE-384
Published
Advisory Summary

CVE-2023-32997 is a HIGH (CVSS 8.8) jenkins cas plugin session fixation vulnerability (CWE-384: Session Fixation) affecting Cas plugin libraries in the Maven ecosystem. The issue involves jenkins cas plugin session fixation vulnerability. Remediation is available by upgrading affected packages to version 1.6.3.

CVE-2023-32997 at a Glance

CVE Identifier CVE-2023-32997
GHSA Identifier GHSA-hjh8-9gxh-cx4x
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-384: Session Fixation
Affected Product Cas plugin
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.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:R/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 Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-32997

To remediate this vulnerability, upgrade all affected Cas plugin 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.jenkins-ci.plugins:cas-plugin fixed: 1.6.3
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>cas-plugin</artifactId>
    <version>1.6.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=org.jenkins-ci.plugins

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins

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

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins 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 Cas plugin, 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

Jenkins CAS Plugin 1.6.2 and earlier does not invalidate the existing session on login. This allows attackers to use social engineering techniques to gain administrator access to Jenkins. CAS Plugin 1.6.3 invalidates the existing session on login.

CVE-2023-32997 Affected Cas plugin Versions

1 component(s)
Fixed Versions:
1.6.3
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins:cas-plugin
Maven
< 1.6.3
1.6.3

References

Frequently Asked Questions

What is CVE-2023-32997?
CVE-2023-32997 is a security vulnerability in Cas plugin involving Jenkins CAS Plugin Session Fixation vulnerability under CWE-384: Session Fixation.
Which Cas plugin versions are affected?
Affected versions include releases prior to 1.6.3 across affected packages: org.jenkins-ci.plugins:cas-plugin.
What version fixes CVE-2023-32997?
Upgrading to 1.6.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cas-plugin affected?
Yes, org.jenkins-ci.plugins:cas-plugin is affected in releases prior to 1.6.3. Upgrade your dependency to 1.6.3 or later.
What is the CVSS score of CVE-2023-32997?
CVE-2023-32997 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-32997?
CVE-2023-32997 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-2023-32997?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.plugins'. 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-hjh8-9gxh-cx4x",
  "modified" : "2023-05-17T03:35:52Z",
  "published" : "2023-05-16T18:30:16Z",
  "aliases" : [ "CVE-2023-32997" ],
  "summary" : "Jenkins CAS Plugin Session Fixation vulnerability",
  "details" : "Jenkins CAS Plugin 1.6.2 and earlier does not invalidate the existing session on login.\n\nThis allows attackers to use social engineering techniques to gain administrator access to Jenkins.\n\nCAS Plugin 1.6.3 invalidates the existing session on login.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:cas-plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32997"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/cas-plugin/commit/3a33cc0175bcc18801faf9125afb38d495b5995f"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2023-05-16/#SECURITY-3000"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-17T03:35:52Z",
    "nvd_published_at" : "2023-05-16T17:15:12Z"
  }
}