CVE-2013-1656: Spree Spree Improper Input Validation Vulnerability Vulnerability
MODERATECVE-2013-1656 is a MODERATE spree improper input validation vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Spree libraries in the RubyGems ecosystem. The issue involves spree improper input validation vulnerability. Remediation is available by upgrading affected packages to version 2.0.0.rc1.
CVE-2013-1656 at a Glance
How to Fix CVE-2013-1656
To remediate this vulnerability, upgrade all affected Spree dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade spree to 2.0.0.rc1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for spree
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-1656, inspect your project dependencies for Spree:
inspect dependencies for spree
Analyze the terminal output to locate any version of Spree in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0.rc1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Spree, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-1656 Affected Spree Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
spree
|
RubyGems |
≥ 1.0.0
< 2.0.0.rc1
|
2.0.0.rc1
|
References
Frequently Asked Questions
What is CVE-2013-1656?
Which Spree versions are affected?
What version fixes CVE-2013-1656?
Is spree affected?
What CWE is associated with CVE-2013-1656?
How can I check RubyGems dependencies for CVE-2013-1656?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jxx8-v83v-rhw3",
"modified" : "2023-08-29T09:24:34Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-1656" ],
"summary" : "Spree Improper Input Validation vulnerability",
"details" : "Spree Commerce 1.0.x before 2.0.0.rc1 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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "spree"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "2.0.0.rc1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1656"
}, {
"type" : "WEB",
"url" : "https://github.com/spree/spree/commit/70092eb55b8be8fe5d21a7658b62da658612fba7"
}, {
"type" : "WEB",
"url" : "https://blog.convisoappsec.com/en/spree-commerce-multiple-unsafe-reflection-vulnerabilities-cve-2013-1656"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2013-1656.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spree/spree"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20130907044454/https://www.conviso.com.br/advisories/CVE-2013-1656.txt"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20140329142330/http://spreecommerce.com/blog/multiple-security-vulnerabilities-fixed"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20140618100330/http://blog.conviso.com.br/2013/03/spree-commerce-multiple-unsafe.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:44:31Z",
"nvd_published_at" : "2013-03-08T18:55:01Z"
}
}