Vulnerability · Published Jun 29, 2021 · Assigned by GitHub_M

CVE-2021-29480Default client side session signing key is highly predictable

Medium 4.4

In plain English

A medium-severity security flaw in ratpack from ratpack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.3%top 81.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, the client side session module uses the application startup time as the signing key by default. This means that if an attacker can determine this time, and if encryption is not also used (which is recommended, but is not on by default), the session data could be tampered with by someone with the ability to write cookies. The default configuration is unsuitable for production use as an application restart renders all sessions invalid and is not multi-host compatible, but its use is not actively prevented. As of Ratpack 1.9.0, the default value is a securely randomly generated value, generated at application startup time. As a workaround, supply an alternative signing key, as per the documentation's recommendation.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenio.ratpack:ratpack-session1.9.0GHSA-2cc5-23r7-vc4v

Affected products (as reported)

VendorProductVersions
ratpack ratpack < 1.9.0

Weakness: CWE-340 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

References