CVE-2019-11808: Ratpack session Use Of Cryptographically Weak Pseudo-Random Vulnerability
LOWCVE-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
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).
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.
<dependency>
<groupId>io.ratpack</groupId>
<artifactId>ratpack-session</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>io.ratpack</groupId>
<artifactId>ratpack-java</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>io.ratpack</groupId>
<artifactId>ratpack-groovy</artifactId>
<version>1.6.1</version>
</dependency>
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
CVE-2019-11808 Affected Ratpack session Versions
3 component(s)| 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?
Which Ratpack session versions are affected?
What version fixes CVE-2019-11808?
Is ratpack-session affected?
Is ratpack-java affected?
What is the CVSS score of CVE-2019-11808?
What CWE is associated with CVE-2019-11808?
How can I check Maven dependencies for CVE-2019-11808?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}