CVE-2011-10026: Spree Commerce is vulnerable to RCE through Search API
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[instanceeval] parameter, which is dynamically invoked using Ruby’s send method. This flaw enables unauthenticated attackers to execute commands on the server.
Published Aug 20, 2025 · Updated Dec 1, 2025
Affected packages
spree
- Ecosystem
- RubyGems
- Affected
- >= 0.30.0.beta1, < 0.50.0
- Fixed in
- 0.50.0
- Check
bundle info spree
rd_searchlogic
- Ecosystem
- RubyGems
- Affected
- <= 3.0.1
- Fixed in
- No patched version yet
- Check
bundle info rd_searchlogic
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2011-10026
- https://github.com/spree
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/spree_searchlogic_exec.rb
- https://web.archive.org/web/20111120023342/http://spreecommerce.com/blog/2011/04/19/security-fixes
- https://www.exploit-db.com/exploits/17199
- https://www.vulncheck.com/advisories/spreecommerce-api-rce
- https://github.com/spree/spree/commit/0a9a360c590829d8a377ceae0cf997bbbbcc2df4
- https://github.com/spree/spree/commit/3b559e7219f3681184be409ad00cd34a34a37978
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rd_searchlogic/CVE-2011-10026.yml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2011-10026.yml
- https://github.com/advisories/GHSA-x485-rhg3-cqr4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
