Live threats

All CVEs / Thoughtbot

CVE-2013-4457Thoughtbot Cocaine

Medium 6.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cocaine.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
thoughtbotcocaine0.4.0
thoughtbotcocaine0.4.1
thoughtbotcocaine0.4.2
thoughtbotcocaine0.5.0
thoughtbotcocaine0.5.1
thoughtbotcocaine0.5.2

Official sources

References

Links published by the sources. Open them with care.