{"id":"CVE-2021-29480","published":"2021-06-29T18:15:12Z","modified":"2024-08-03T22:11:05Z","title":"Default client side session signing key is highly predictable","vendor":"ratpack","product":"ratpack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00262,"percentile":0.18387,"provenance":"source"},"cwes":[{"id":"CWE-340","name":"Generation of Predictable Numbers or Identifiers"}],"references":[{"url":"https://github.com/ratpack/ratpack/security/advisories/GHSA-2cc5-23r7-vc4v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ratpack/ratpack/blob/29434f7ac6fd4b36a4495429b70f4c8163100332/ratpack-session/src/main/java/ratpack/session/clientside/ClientSideSessionConfig.java#L29","tags":["x_refsource_MISC"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":3.68},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"ratpack","affectedVersions":[{"vendor":"ratpack","product":"ratpack","versions":["< 1.9.0"]}],"affected":[{"ecosystem":"Maven","package":"io.ratpack:ratpack-session","vulnerableRanges":["<1.9.0"],"patched":["1.9.0"],"from":["GHSA-2cc5-23r7-vc4v"],"provenance":"source"}],"summary":{"text":"Ratpack's client-side session module, in versions before 1.9.0, uses the application startup time as its default signing key, making the session signing key predictable. An attacker who can determine that startup time and who can write cookies (with encryption not enabled, which is off by default) could tamper with session data, provided they have local access that allows cookie writing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:18Z"},"euvd":{"id":"EUVD-2021-1431","exploited":false,"provenance":"source"}}