{"id":"CVE-2015-8314","aliases":["DEBIAN-CVE-2015-8314","EUVD-2023-0374","GHSA-746g-3gfp-hfhw"],"status":"published","title":"Devise Gem for Ruby Unauthorized Access Using \"Remember Me\" Cookie","description":"The Devise gem before 3.5.4 for Ruby mishandles Remember Me cookies for sessions, which may allow an adversary to obtain unauthorized persistent application access.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00618,"percentile":0.49929,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-288","CWE-312"],"published":"2023-01-26T23:54:07Z","modified":"2026-09-09T07:01:52Z","fixes":[{"ecosystem":"RubyGems","package":"devise","fixed_in":["3.5.4"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"ruby-devise","fixed_in":["3.5.6-2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"devise","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ruby-devise","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.6-2"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"devise","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.4"}]}],"versions":["0.1.0","0.1.1","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.4.0","0.4.1","0.4.2","0.4.3","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.6.0","0.6.1","0.6.2","0.6.3","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","1.0.0","1.0.1","1.0.10","1.0.11","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.1.pre","1.1.pre2","1.1.pre3","1.1.pre4","1.1.rc0","1.1.rc1","1.1.rc2","1.2.0","1.2.1","1.2.rc","1.2.rc2","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.4.1","1.4.2","1.4.3","1.4.5","1.4.7","1.4.8","1.4.9","1.5.0","1.5.0.rc1","1.5.1","1.5.2","1.5.3","1.5.4","2.0.0","2.0.0.rc","2.0.0.rc2","2.0.1","2.0.2","2.0.4","2.0.5","2.0.6","2.1.0","2.1.0.rc","2.1.0.rc2","2.1.2","2.1.3","2.1.4","2.2.0","2.2.0.rc","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","3.0.0","3.0.0.rc","3.0.1","3.0.2","3.0.3","3.0.4","3.1.0","3.1.0.rc2","3.1.1","3.1.2","3.2.0","3.2.1","3.2.2","3.2.3","3.2.4","3.3.0","3.4.0","3.4.1","3.5.1","3.5.2","3.5.3"]}],"products":[{"vendor":"heartcombo","product":"devise"}],"references":[{"url":"https://rubysec.com/advisories/CVE-2015-8314/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/advisories/GHSA-746g-3gfp-hfhw","tags":["x_transferred","Patch","Third Party Advisory","advisory","fix"]},{"url":"https://github.com/heartcombo/devise/commit/c92996646aba2d25b2c3e235fe0c4f1a84b70d24","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2015-8314.yml","tags":["web"]},{"url":"http://blog.plataformatec.com.br/2016/01/improve-remember-me-cookie-expiration-in-devise/"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-8314","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-8314","tags":["advisory"]},{"url":"https://github.com/heartcombo/devise","tags":["package"]},{"url":"https://rubysec.com/advisories/CVE-2015-8314","tags":["web"]},{"url":"http://blog.plataformatec.com.br/2016/01/improve-remember-me-cookie-expiration-in-devise","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2015-8314","description":"The Devise gem before 3.5.4 for Ruby mishandles Remember Me cookies for sessions, which may allow an adversary to obtain unauthorized persistent application access.","status":"published","published":"2023-12-12T00:00:00Z","modified":"2025-05-27T14:34:06.86Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"adp"}],"cwes":["CWE-312"],"updated_at":"2026-11-02T14:35:40.900357Z"}],"euvd":[{"id":"EUVD-2023-0374","description":"The Devise gem before 3.5.4 for Ruby mishandles Remember Me cookies for sessions, which may allow an adversary to obtain unauthorized persistent application access.","status":"published","published":"2023-12-12T00:00:00Z","modified":"2025-05-27T14:34:06Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T20:32:38.348652Z"}],"ghsa":[{"id":"GHSA-746g-3gfp-hfhw","title":"Devise Gem for Ruby Unauthorized Access Using \"Remember Me\" Cookie","description":"Devise version before 3.5.4 uses cookies to implement a \"Remember me\" functionality. However, it generates the same cookie for all devices. If an attacker manages to steal a remember me cookie and the user does not change the password frequently, the cookie can be used to gain access to the application indefinitely.\n","status":"published","published":"2023-01-26T23:54:07Z","modified":"2023-12-14T22:26:45Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-288","CWE-312"],"updated_at":"2026-11-02T14:37:26.012325Z"}],"nvd":[{"id":"CVE-2015-8314","description":"The Devise gem before 3.5.4 for Ruby mishandles Remember Me cookies for sessions, which may allow an adversary to obtain unauthorized persistent application access.","status":"published","published":"2023-12-12T17:15:07.45Z","modified":"2026-06-17T00:34:18.057Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-312"],"updated_at":"2026-11-02T14:03:20.037729Z"}],"osv":[{"id":"CVE-2015-8314","description":"The Devise gem before 3.5.4 for Ruby mishandles Remember Me cookies for sessions, which may allow an adversary to obtain unauthorized persistent application access.","status":"published","published":"2023-12-12T17:15:07Z","modified":"2026-04-10T03:45:31.009362Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:01.068991Z"},{"id":"DEBIAN-CVE-2015-8314","description":"The Devise gem before 3.5.4 for Ruby mishandles Remember Me cookies for sessions, which may allow an adversary to obtain unauthorized persistent application access.","status":"published","published":"2023-12-12T17:15:07.45Z","modified":"2026-09-09T07:01:52.667018035Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:27.04239Z"},{"id":"GHSA-746g-3gfp-hfhw","title":"Devise Gem for Ruby Unauthorized Access Using \"Remember Me\" Cookie","description":"Devise version before 3.5.4 uses cookies to implement a \"Remember me\" functionality. However, it generates the same cookie for all devices. If an attacker manages to steal a remember me cookie and the user does not change the password frequently, the cookie can be used to gain access to the application indefinitely.\n","status":"published","published":"2023-01-26T23:54:07Z","modified":"2026-02-04T02:28:40.782506Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-288","CWE-312"],"updated_at":"2026-11-02T15:46:40.308826Z"}]}}
