GHSA-cvw2-xj8r-mjf7
Activerecord-session_store Vulnerable to Timing Attack
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| RubyGems | activerecord-session_store | < 2.0.0 | 2.0.0 |
Details
As written in the advisory (Markdown source, shown as plain text).
The `activerecord-session_store` (aka Active Record Session Store) component through 1.1.3 for Ruby on Rails does not use a constant-time approach when delivering information about whether a guessed session ID is valid. Consequently, remote attackers can leverage timing discrepancies to achieve a correct guess in a relatively short amount of time. This is a related issue to CVE-2019-16782.
## Recommendation
This has been fixed in version 2.0.0. All users are advised to update to this version or later.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2019-25025
- https://github.com/rails/activerecord-session_store/pull/151
- https://github.com/rails/activerecord-session_store/commit/9d4dd113d3010b82daaadf0b0ee6b9fb2afb2160
- https://github.com/rails/activerecord-session_store
- https://github.com/rails/activerecord-session_store/releases/tag/v2.0.0
- https://github.com/rubysec/ruby-advisory-db/blob/master/activerecord-session_store/CVE-2019-25025.yml
- https://rubygems.org/gems/activerecord-session_store