Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. cocaine
  4. ›
  5. CVE-2013-4457

CVE-2013-4457: Recursive Interpolation Vulnerability

November 2, 2013 (updated November 5, 2013)

Due to the method of variable interpolation in Cocaine to, an attacker may be able to inject hostile commands into a command line via a crafted hash object which are not properly escaped. The impact is lessened on Ruby * because hashed are not ordered by default, and so an attacker must rely on luck for the attack to work. An attack of this sort cannot take place if there is only one value being interpolated into the command line. Users of the Paperclip gem are encouraged to upgrade to the latest version of Cocaine. Users of the branch of Paperclip will not need to upgrade as the version of Cocaine it uses is not vulnerable to this attack.

References

  • seclists.org/oss-sec/2013/q4/157

Code Behaviors & Features

Detect and mitigate CVE-2013-4457 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.4.0 up to 0.5.2

Fixed versions

  • 0.5.3

Solution

Upgrade to 0.5.3

Impact 6.8 MEDIUM

AV:N/AC:M/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

gem/cocaine/CVE-2013-4457.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:28 +0000.