CVE-2008-7311 Spree uses a hardcoded hash value

Medium 5.0 Published Updated

Remote attackers can bypass session security in Spree by exploiting a hardcoded secret key, allowing them to forge valid session cookies.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2008-7311?

CVE-2008-7311 is a medium-severity vulnerability in n/a, published on 4 Apr 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-255

Which versions are affected by CVE-2008-7311?

2 open source packages ship an affected version, including spree. It affects 1 product.

PackageAffectedFixed in
spree RubyGemsAll versions0.4.0
spree RubyGemsAll versions0.4.0

Products include Spreecommerce Spree.

How do I fix CVE-2008-7311?

Upgrade spree to 0.4.0 or later.

Is CVE-2008-7311 being exploited?

There is no known exploitation of CVE-2008-7311 in the wild and no public exploit code.

Sources

Also known as GHSA-g466-57gh-cqfw.

Is CVE-2008-7311 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free