CVE-2019-11808: Ratpack session Use Of Cryptographically Weak Pseudo-Random Vulnerability

LOW
Advisory Identifier: GHSA-54mg-vgrp-mwx9
CVSS 3.7
CWE-338
Published
Advisory Summary

CVE-2019-11808 is a LOW (CVSS 3.7) use of cryptographically weak pseudo-random vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Ratpack session libraries in the Maven ecosystem. The issue involves use of cryptographically weak pseudo-random number generator (prng) in ratpack. Remediation is available by upgrading affected packages to version 1.6.1.

CVE-2019-11808 at a Glance

CVE Identifier CVE-2019-11808
GHSA Identifier GHSA-54mg-vgrp-mwx9
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Ratpack session
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 3.7

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

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

How to Fix CVE-2019-11808

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

io.ratpack:ratpack-session fixed: 1.6.1
<dependency>
    <groupId>io.ratpack</groupId>
    <artifactId>ratpack-session</artifactId>
    <version>1.6.1</version>
</dependency>
io.ratpack:ratpack-java fixed: 1.6.1
<dependency>
    <groupId>io.ratpack</groupId>
    <artifactId>ratpack-java</artifactId>
    <version>1.6.1</version>
</dependency>
io.ratpack:ratpack-groovy fixed: 1.6.1
<dependency>
    <groupId>io.ratpack</groupId>
    <artifactId>ratpack-groovy</artifactId>
    <version>1.6.1</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=io.ratpack

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=io.ratpack

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

Note: The mvn dependency:tree -Dincludes=io.ratpack 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 Ratpack session, 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

Ratpack versions before 1.6.1 generate a session ID using a cryptographically weak PRNG in the JDK's ThreadLocalRandom. This means that if an attacker can determine a small window for the server start time and obtain a session ID value, they can theoretically determine the sequence of session IDs.

CVE-2019-11808 Affected Ratpack session Versions

3 component(s)
Fixed Versions:
1.6.1
Product / Package Ecosystem Affected Versions Fixed Version
io.ratpack:ratpack-session
Maven
< 1.6.1
1.6.1
io.ratpack:ratpack-java
Maven
< 1.6.1
1.6.1
io.ratpack:ratpack-groovy
Maven
< 1.6.1
1.6.1

References

Frequently Asked Questions

What is CVE-2019-11808?
CVE-2019-11808 is a security vulnerability in Ratpack session involving Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Ratpack under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Ratpack session versions are affected?
Affected versions include releases prior to 1.6.1 across affected packages: io.ratpack:ratpack-session, io.ratpack:ratpack-java, io.ratpack:ratpack-groovy.
What version fixes CVE-2019-11808?
Upgrading to 1.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ratpack-session affected?
Yes, io.ratpack:ratpack-session is affected in releases prior to 1.6.1. Upgrade your dependency to 1.6.1 or later.
Is ratpack-java affected?
Yes, io.ratpack:ratpack-java is affected in releases prior to 1.6.1. Upgrade your dependency to 1.6.1 or later.
What is the CVSS score of CVE-2019-11808?
CVE-2019-11808 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2019-11808?
CVE-2019-11808 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-11808?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.ratpack'. 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-54mg-vgrp-mwx9",
  "modified" : "2021-08-04T15:01:30Z",
  "published" : "2019-05-14T04:01:37Z",
  "aliases" : [ "CVE-2019-11808" ],
  "summary" : "Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Ratpack",
  "details" : "Ratpack versions before 1.6.1 generate a session ID using a cryptographically weak PRNG in the JDK's ThreadLocalRandom. This means that if an attacker can determine a small window for the server start time and obtain a session ID value, they can theoretically determine the sequence of session IDs.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.ratpack:ratpack-session"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.ratpack:ratpack-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.ratpack:ratpack-groovy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11808"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ratpack/ratpack/issues/1448"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ratpack/ratpack/commit/f2b63eb82dd71194319fd3945f5edf29b8f3a42d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ratpack/ratpack/releases/tag/v1.6.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-338" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-14T03:48:09Z",
    "nvd_published_at" : "2019-05-07T07:29:00Z"
  }
}