Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Spreecommerce | Spreecommerce | < 0.50.* | 0.50.* |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Spreecommerce Arbitrary Command Execution
exploit/multi/http/spree_searchlogic_exec
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | rd_searchlogic | <= 3.0.1 | — | GHSA-x485-rhg3-cqr4 |
| RubyGems | spree | >= 0.30.0.beta1, < 0.50.0 | 0.50.0 | GHSA-x485-rhg3-cqr4 |
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/spree_searchlogic_exec.rb exploit
- https://www.exploit-db.com/exploits/17199 exploit
- https://web.archive.org/web/20111120023342/http://spreecommerce.com/blog/2011/04/19/security-fixes vendor-advisory patch
- https://github.com/spree product
- https://www.vulncheck.com/advisories/spreecommerce-api-rce third-party-advisory