The Cocaine gem 0.4.0 through 0.5.2 for Ruby allows context-dependent attackers to…
Priority LOW 34CWE-78Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
EPSS 0.01997 80th percentileScored 2026-11-07
Fix Fixed cocaine (RubyGems): 0.5.3
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | cocaine (RubyGems) | 0.4.0 to before 0.5.3 | 0.5.3 | Patch available | GHSA-c43v-hrmg-56r4 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- cocaine (RubyGems) Vendor— Affected 0.4.0 to before 0.5.3 Fixed in 0.5.3 Patch available GHSA-c43v-hrmg-56r4
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:thoughtbot:cocaine:0.4.0:-:*:*:*:ruby:*:* | 0.4.0 | Vulnerable | thoughtbot |
| cpe:2.3:a:thoughtbot:cocaine:0.4.1:-:*:*:*:ruby:*:* | 0.4.1 | Vulnerable | thoughtbot |
| cpe:2.3:a:thoughtbot:cocaine:0.4.2:-:*:*:*:ruby:*:* | 0.4.2 | Vulnerable | thoughtbot |
| cpe:2.3:a:thoughtbot:cocaine:0.5.0:*:*:*:*:ruby:*:* | 0.5.0 | Vulnerable | thoughtbot |
| cpe:2.3:a:thoughtbot:cocaine:0.5.1:-:*:*:*:ruby:*:* | 0.5.1 | Vulnerable | thoughtbot |
| cpe:2.3:a:thoughtbot:cocaine:0.5.2:-:*:*:*:ruby:*:* | 0.5.2 | Vulnerable | thoughtbot |
- cpe:2.3:a:thoughtbot:cocaine:0.4.0:-:*:*:*:ruby:*:* Versions 0.4.0 Vulnerable ·thoughtbot
- cpe:2.3:a:thoughtbot:cocaine:0.4.1:-:*:*:*:ruby:*:* Versions 0.4.1 Vulnerable ·thoughtbot
- cpe:2.3:a:thoughtbot:cocaine:0.4.2:-:*:*:*:ruby:*:* Versions 0.4.2 Vulnerable ·thoughtbot
- cpe:2.3:a:thoughtbot:cocaine:0.5.0:*:*:*:*:ruby:*:* Versions 0.5.0 Vulnerable ·thoughtbot
- cpe:2.3:a:thoughtbot:cocaine:0.5.1:-:*:*:*:ruby:*:* Versions 0.5.1 Vulnerable ·thoughtbot
- cpe:2.3:a:thoughtbot:cocaine:0.5.2:-:*:*:*:ruby:*:* Versions 0.5.2 Vulnerable ·thoughtbot
Remediation
- Fix · GHSA-c43v-hrmg-56r4 cocaine (RubyGems) Fixed in 0.5.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2013-4457
- 2026-10-03 Alias added: GHSA-c43v-hrmg-56r4
References
Sources
- CVE-2013-4457 · CVE Program
- CVE-2013-4457 · NVD
- FIRST EPSS
- GHSA-c43v-hrmg-56r4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences