CVE-2013-4457Thoughtbot Cocaine
Medium 6.8 No auth needed
Follow: this CVE · Thoughtbot · Thoughtbot Cocaine We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 2.0
- 6.8
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Nov 2, 2013
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
The Cocaine gem 0.4.0 through 0.5.2 for Ruby allows context-dependent attackers to execute arbitrary commands via a crafted has object, related to recursive variable interpolation.
What to do
- Apply the vendor's security update for Cocaine.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | cocaine |
≥ 0.4.0 < 0.5.3 |
0.5.3 |
gem "cocaine", ">= 0.5.3" |
Per OSV / GitHub Advisories (GHSA-c43v-hrmg-56r4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thoughtbot | cocaine | 0.4.0 |
| thoughtbot | cocaine | 0.4.1 |
| thoughtbot | cocaine | 0.4.2 |
| thoughtbot | cocaine | 0.5.0 |
| thoughtbot | cocaine | 0.5.1 |
| thoughtbot | cocaine | 0.5.2 |
Official sources
References
Links published by the sources. Open them with care.
- osvdb.org
- secunia.com Vendor Advisory
- www.openwall.com
- github.com