CVE-2013-1656 Spree Improper Input Validation vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
spree RubyGems | From 1.0.0 | 2.0.0.rc1 |
spree RubyGems | From 1.0.0 | 2.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.
Other vulnerabilities in n/a
- CVE-2011-10019 Spreecommerce < 0.60.2 Search Parameter RCE
- CVE-2011-10026 Spreecommerce < 0.50.x API RCE
- CVE-2026-25757 Unauthenticated Spree Commerce users can view completed guest orders by Order ID
- CVE-2026-25758 Spree allows unauthenticated users can access all guest addresses
- CVE-2020-26223 Authorization bypass in Spree
Sources
Also known as GHSA-jxx8-v83v-rhw3.