CVE-2013-2506 spree_auth_devise allows remote authenticated users to assign themselves arbitrary roles

Medium 4.0 Published Updated

Authenticated users can escalate privileges by assigning arbitrary roles to themselves due to unsafe mass assignment in Spree.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-2506?

CVE-2013-2506 is a medium-severity vulnerability in n/a, published on 8 Mar 2013. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

app/models/spree/user.rb in spree_auth_devise in Spree 1.1.x before 1.1.6, 1.2.x, and 1.3.x does not perform mass assignment safely when updating a user, which allows remote authenticated users to assign arbitrary roles to themselves.

Weakness: CWE-264

Which versions are affected by CVE-2013-2506?

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

PackageAffectedFixed in
spree_auth_devise RubyGemsFrom 1.0.03.0.5
spree_auth_devise RubyGemsFrom 1.0.03.0.5

Products include Spreecommerce Spree.

How do I fix CVE-2013-2506?

Upgrade spree_auth_devise to 3.0.5 or later.

Is CVE-2013-2506 being exploited?

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

Sources

Also known as GHSA-jp57-9j37-5476.

Is CVE-2013-2506 in your software?

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

Check your SBOMs for free