CVE-2011-10026: Spree Remote Code Execution Vulnerability
CRITICALCVE-2011-10026 is a CRITICAL remote code execution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Spree libraries in the RubyGems ecosystem. The issue involves spree commerce is vulnerable to rce through search api. Remediation is available by upgrading affected packages to version 0.50.0.
CVE-2011-10026 at a Glance
How to Fix CVE-2011-10026
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 0.50.0
Upgrade rd_searchlogic to Latest secure release
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-2011-10026, 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 0.50.0), 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. 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-2011-10026 Affected Spree Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
spree
|
RubyGems |
≥ 0.30.0.beta1
< 0.50.0
|
0.50.0
|
|
rd_searchlogic
|
RubyGems |
≤ 3.0.1
|
|
References
Frequently Asked Questions
What is CVE-2011-10026?
Which Spree versions are affected?
What version fixes CVE-2011-10026?
Is spree affected?
Is rd_searchlogic affected?
What CWE is associated with CVE-2011-10026?
How can I check RubyGems dependencies for CVE-2011-10026?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x485-rhg3-cqr4",
"modified" : "2025-12-01T16:03:35Z",
"published" : "2025-08-20T18:30:21Z",
"aliases" : [ "CVE-2011-10026" ],
"summary" : "Spree Commerce is vulnerable to RCE through Search API",
"details" : "Spreecommerce versions prior to 0.50.x contain a remote command execution vulnerability in the API's search functionality. Improper input sanitation allows attackers to inject arbitrary shell commands via the search[instance_eval] parameter, which is dynamically invoked using Ruby’s send method. This flaw enables unauthenticated attackers to execute commands on the server.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "spree"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.30.0.beta1"
}, {
"fixed" : "0.50.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rd_searchlogic"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-10026"
}, {
"type" : "WEB",
"url" : "https://github.com/spree/spree/commit/0a9a360c590829d8a377ceae0cf997bbbbcc2df4"
}, {
"type" : "WEB",
"url" : "https://github.com/spree/spree/commit/3b559e7219f3681184be409ad00cd34a34a37978"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rd_searchlogic/CVE-2011-10026.yml"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2011-10026.yml"
}, {
"type" : "WEB",
"url" : "https://github.com/spree"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spree/spree"
}, {
"type" : "WEB",
"url" : "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/spree_searchlogic_exec.rb"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20111120023342/http://spreecommerce.com/blog/2011/04/19/security-fixes"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/17199"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/spreecommerce-api-rce"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78", "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-26T00:04:31Z",
"nvd_published_at" : "2025-08-20T16:15:35Z"
}
}