Description
The crack gem 0.3.1 and earlier for Ruby does not properly restrict casts of string values, which might allow remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-crack | 0.3.2-1 | — |
| Debian 13 | ruby-crack | 0.3.2-1 | — |
| Debian 12 | ruby-crack | 0.3.2-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | crack | < 0.3.2 | 0.3.2 | GHSA-m7fq-cf8q-35q7 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=917236
- 52897 third-party-advisory
- https://bugzilla.novell.com/show_bug.cgi?id=804721
- SUSE-SU-2013:0615 vendor-advisory
- https://support.cloud.engineyard.com/entries/22915701-january-14-2013-security-vulnerabilities-httparty-extlib-crack-nori-update-these-gems-immediately
- https://github.com/jnunemaker/crack/commit/e3da1212a1f84a898ee3601336d1dbbf118fb5f6