Vulnerabilities in pkg:maven/org.apereo.cas/cas-server-support-simple-mfa

PACKAGE
Advisory Identifier: GHSA-g24w-373r-5pxg
Advisory Summary

CVE-2019-10754 is a HIGH (CVSS 8.1) use of insufficiently random values vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Cas server support simple mfa libraries in the Maven ecosystem. The issue involves use of insufficiently random values in apereo cas. Remediation is available by upgrading affected packages to version 6.1.0-RC5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apereo.cas/cas-server-support-simple-mfa

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apereo.cas/cas-server-support-simple-mfa. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-g24w-373r-5pxg CVE-2019-10754 HIGH Use of Insufficiently Random Values in Apereo CAS

CVE-2019-10754 at a Glance

CVE Identifier CVE-2019-10754
GHSA Identifier GHSA-g24w-373r-5pxg
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Cas server support simple mfa
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.1

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

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

How to Fix CVE-2019-10754

To remediate this vulnerability, upgrade all affected Cas server support simple mfa 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.apereo.cas:cas-server-support-simple-mfa fixed: 6.1.0-RC5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-simple-mfa</artifactId>
    <version>6.1.0-RC5</version>
</dependency>
org.apereo.cas:cas-server-support-oidc fixed: 6.1.0-RC5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-oidc</artifactId>
    <version>6.1.0-RC5</version>
</dependency>
org.apereo.cas:cas-server-core-services-api fixed: 6.1.0-RC5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-core-services-api</artifactId>
    <version>6.1.0-RC5</version>
</dependency>
org.apereo.cas:cas-server-support-oauth-core-api fixed: 6.1.0-RC5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-oauth-core-api</artifactId>
    <version>6.1.0-RC5</version>
</dependency>
org.apereo.cas:cas-server-support-shell fixed: 6.1.0-RC5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-shell</artifactId>
    <version>6.1.0-RC5</version>
</dependency>
org.apereo.cas:cas-server-core-services-authentication fixed: 6.1.0-RC5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-core-services-authentication</artifactId>
    <version>6.1.0-RC5</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.apereo.cas

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apereo.cas

Analyze the terminal output to locate any version of Cas server support simple mfa in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.0-RC5), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apereo.cas 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-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. In Cas server support simple mfa, 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

Multiple classes used within Apereo CAS before release 6.1.0-RC5 makes use of apache commons-lang3 RandomStringUtils for token and ID generation which makes them predictable due to RandomStringUtils PRNG's algorithm not being cryptographically strong.

CVE-2019-10754 Affected Cas server support simple mfa Versions

6 component(s)
Fixed Versions:
6.1.0-RC5
Product / Package Ecosystem Affected Versions Fixed Version
org.apereo.cas:cas-server-support-simple-mfa
Maven
< 6.1.0-RC5
6.1.0-RC5
org.apereo.cas:cas-server-support-oidc
Maven
< 6.1.0-RC5
6.1.0-RC5
org.apereo.cas:cas-server-core-services-api
Maven
< 6.1.0-RC5
6.1.0-RC5
org.apereo.cas:cas-server-support-oauth-core-api
Maven
< 6.1.0-RC5
6.1.0-RC5
org.apereo.cas:cas-server-support-shell
Maven
< 6.1.0-RC5
6.1.0-RC5
org.apereo.cas:cas-server-core-services-authentication
Maven
< 6.1.0-RC5
6.1.0-RC5

References

Frequently Asked Questions

What is CVE-2019-10754?
CVE-2019-10754 is a security vulnerability in Cas server support simple mfa involving Use of Insufficiently Random Values in Apereo CAS under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Cas server support simple mfa versions are affected?
Affected versions include releases prior to 6.1.0-RC5 across affected packages: org.apereo.cas:cas-server-support-simple-mfa, org.apereo.cas:cas-server-support-oidc, org.apereo.cas:cas-server-core-services-api, org.apereo.cas:cas-server-support-oauth-core-api, org.apereo.cas:cas-server-support-shell, org.apereo.cas:cas-server-core-services-authentication.
What version fixes CVE-2019-10754?
Upgrading to 6.1.0-RC5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cas-server-support-simple-mfa affected?
Yes, org.apereo.cas:cas-server-support-simple-mfa is affected in releases prior to 6.1.0-RC5. Upgrade your dependency to 6.1.0-RC5 or later.
Is cas-server-support-oidc affected?
Yes, org.apereo.cas:cas-server-support-oidc is affected in releases prior to 6.1.0-RC5. Upgrade your dependency to 6.1.0-RC5 or later.
What is the CVSS score of CVE-2019-10754?
CVE-2019-10754 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2019-10754?
CVE-2019-10754 is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.).
How can I check Maven dependencies for CVE-2019-10754?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apereo.cas'. 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-g24w-373r-5pxg",
  "modified" : "2022-11-01T23:37:32Z",
  "published" : "2022-05-24T16:56:41Z",
  "aliases" : [ "CVE-2019-10754" ],
  "summary" : "Use of Insufficiently Random Values in Apereo CAS",
  "details" : "Multiple classes used within Apereo CAS before release 6.1.0-RC5 makes use of apache commons-lang3 RandomStringUtils for token and ID generation which makes them predictable due to RandomStringUtils PRNG's algorithm not being cryptographically strong.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apereo.cas:cas-server-support-simple-mfa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.0-RC5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apereo.cas:cas-server-support-oidc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.0-RC5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apereo.cas:cas-server-core-services-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.0-RC5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apereo.cas:cas-server-support-oauth-core-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.0-RC5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apereo.cas:cas-server-support-shell"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.0-RC5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apereo.cas:cas-server-core-services-authentication"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.0-RC5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10754"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apereo/cas/commit/40bf278e66786544411c471de5123e7a71826b9f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apereo/cas"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGAPEREOCAS-467402"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGAPEREOCAS-467404"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGAPEREOCAS-467406"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGAPEREOCAS-468868"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGAPEREOCAS-468869"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-330", "CWE-338" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-01T23:37:32Z",
    "nvd_published_at" : "2019-09-23T23:15:00Z"
  }
}