CVE-2013-1656 Spree Improper Input Validation vulnerability

Medium 4.3 Published Updated

Authenticated administrators can execute arbitrary commands via unsafe constantize usage in Spree Commerce admin controllers.

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

What is CVE-2013-1656?

CVE-2013-1656 is a medium-severity code injection vulnerability in n/a, published on 8 Mar 2013. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Spree Commerce 1.0.x through 1.3.2 allows remote authenticated administrators to instantiate arbitrary Ruby objects and execute arbitrary commands via the (1) payment_method parameter to core/app/controllers/spree/admin/payment_methods_controller.rb; and the (2) promotion_action parameter to promotion_actions_controller.rb, (3) promotion_rule parameter to promotion_rules_controller.rb, and (4) calculator_type parameter to promotions_controller.rb in promo/app/controllers/spree/admin/, related to unsafe use of the constantize function.

Weakness: CWE-20

Which versions are affected by CVE-2013-1656?

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

PackageAffectedFixed in
spree RubyGemsFrom 1.0.02.0.0.rc1
spree RubyGemsFrom 1.0.02.0.0.rc1

Products include Spreecommerce Spree.

How do I fix CVE-2013-1656?

Upgrade spree to 2.0.0.rc1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2013-1656 being exploited?

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

Sources

Also known as GHSA-jxx8-v83v-rhw3.

Is CVE-2013-1656 in your software?

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

Check your SBOMs for free