ADVISORIES

GitHub Advisory Database

GHSA-54mg-vgrp-mwx9

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.

Affected packages

EcosystemPackageAffected versions
Mavenio.ratpack:ratpack-session
All versions before 1.6.1 (fixed in 1.6.1)
Mavenio.ratpack:ratpack-java
All versions before 1.6.1 (fixed in 1.6.1)
Mavenio.ratpack:ratpack-groovy
All versions before 1.6.1 (fixed in 1.6.1)

References