{"id":"CVE-2008-7311","aliases":["GHSA-g466-57gh-cqfw"],"kind":"cve","tier":"cold","status":"published","title":"Spree uses a hardcoded hash value","description":"The session cookie store implementation in Spree 0.2.0 uses a hardcoded config.action_controller_session hash value (aka secret key), which makes it easier for remote attackers to bypass cryptographic protection mechanisms by leveraging an application that contains this value within the config/environment.rb file.","ai_summary":null,"severity":"medium","cvss":{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"NVD"},"scores":[{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"nvd"}],"cwe":["CWE-255"],"remote":true,"remote_unauth":true,"epss":{"score":0.01129,"percentile":0.67423,"date":"2026-12-03"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"RubyGems","name":"spree","affected":"< 0.4.0","fixed":["0.4.0"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade spree to 0.4.0 or later.","technologies":[],"references":[{"url":"http://spreecommerce.com/blog/2008/08/12/security-vulernability-session-cookie-store/","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-7311","kind":"vendor"},{"url":"http://support.spreehq.org/issues/show/63","kind":"other"},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2008-7311.yml","kind":"other"},{"url":"https://github.com/spree/spree","kind":"other"},{"url":"https://spreecommerce.com/blog/security-vulernability-session-cookie-store","kind":"other"},{"url":"https://web.archive.org/web/20090306033106/http://support.spreehq.org/issues/show/63","kind":"other"},{"url":"https://web.archive.org/web/20100309050152/http://rubygems.org/gems/spree/versions","kind":"other"},{"url":"https://web.archive.org/web/20101128024939/http://spreecommerce.com/blog/2008/08/12/security-vulernability-session-cookie-store","kind":"other"},{"url":"http://spreecommerce.com/blog/2008/08/12/security-vulernability-session-cookie-store","kind":"other"}],"workarounds":null,"vendors":["spreecommerce"],"products":["spree"],"cpes":["cpe:2.3:a:spreecommerce:spree:0.2.0:*:*:*:*:*:*:*"],"published_at":"2012-04-04T22:00:00.000Z","modified_at":"2026-06-16T23:04:02.110Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2008-7311"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-g466-57gh-cqfw","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2008-7311","markdown":"https://flawdb.com/CVE-2008-7311.md","json":"https://flawdb.com/api/v1/entries/CVE-2008-7311"}}