Home / Thoughtbot / Cocaine / CVE-2013-4457
CVE-2013-4457: is it exploited, and which versions of Thoughtbot Cocaine are affected and fixed?
CVE-2013-4457 is an OS command injection vulnerability in Thoughtbot Cocaine. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: cocaine from 0.4.0 before 0.5.3 (GitHub advisory GHSA-c43v-hrmg-56r4). Fixed in 0.5.3 (GitHub advisory GHSA-c43v-hrmg-56r4). Severity: Medium (6.8, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:47 UTC.
What is CVE-2013-4457?
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.
From the CVE record by redhat, last updated September 16, 2024, 16:17 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | cocaine | >= 0.4.0, < 0.5.3 | 0.5.3 | GHSA-c43v-hrmg-56r4 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 5, 2023. Summary: Cocaine Gem OS Command Injection vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| thoughtbot | cocaine | 0.4.0 | application |
| thoughtbot | cocaine | 0.4.1 | application |
| thoughtbot | cocaine | 0.4.2 | application |
| thoughtbot | cocaine | 0.5.0 | application |
| thoughtbot | cocaine | 0.5.1 | application |
| thoughtbot | cocaine | 0.5.2 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:57 UTC.
How severe is CVE-2013-4457?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2013-4457 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.00% probability of exploitation activity in the next 30 days, percentile 81.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://github.com/thoughtbot/cocaine/blob/master/NEWS.md x_refsource_CONFIRM
- 98835 vdb-entry, x_refsource_OSVDB
- [oss-security] 20131022 Recursive Interpolation Vulnerability in Cocaine rubygem (CVE-2013-4457) mailing-list, x_refsource_MLIST
- 55365 third-party-advisory, x_refsource_SECUNIA
When was it published, and where is the official record?
- Reserved
- June 12, 2013
- Published
- November 2, 2013, 18:00 UTC
- CVE record updated
- September 16, 2024, 16:17 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:57 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:47 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2013-4457
Is CVE-2013-4457 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 2.00% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Thoughtbot Cocaine are affected by CVE-2013-4457?
cocaine from 0.4.0 before 0.5.3, per the GitHub advisory GHSA-c43v-hrmg-56r4. The tables above give every range the sources list.
Which version fixes CVE-2013-4457?
0.5.3, per the GitHub advisory GHSA-c43v-hrmg-56r4. Check the vendor's advisory before you rely on it.
How severe is CVE-2013-4457?
Medium (6.8, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2013-4457?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.