rails/activerecord-session_store · Security
Activerecord-session_store Vulnerable to Timing Attack
- GHSA ID
- GHSA-cvw2-xj8r-mjf7
- CVE ID
- CVE-2019-25025
- Severity
- medium
- Published
- Updated
- CVSS
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CVSS v3
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Description
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.
CWEs
- CWE-208 · Observable Timing Discrepancy
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-25025 ↗
- https://github.com/rails/activerecord-session_store/pull/151 ↗
- https://rubygems.org/gems/activerecord-session_store ↗
- https://github.com/rails/activerecord-session_store/commit/9d4dd113d3010b82daaadf0b0ee6b9fb2afb2160 ↗
- 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://github.com/advisories/GHSA-cvw2-xj8r-mjf7 ↗