CVE-2019-10842
rubygem-bootstrap-sass: backdoor code allows arbitrary code execution when downloaded from rubygems.org
Overview
Description
Arbitrary code execution (via backdoor code) was discovered in bootstrap-sass 3.2.0.3, when downloaded from rubygems.org. An unauthenticated attacker can craft the ___cfduid cookie value with base64 arbitrary code to be executed via eval(), which can be leveraged to execute arbitrary code on the target system. Note that there are three underscore characters in the cookie name. This is unrelated to the __cfduid cookie that is legitimately used by Cloudflare.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-94
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | bootstrap-sass | >=3.2.0.3, <3.2.0.4 | 3.2.0.4 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- dgb.github.io http://dgb.github.io/2019/04/05/bootstrap-sass-backdoor.html
- access.redhat.com https://access.redhat.com/security/cve/CVE-2019-10842
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-sass/CVE-2019-10842.yml
- github.com https://github.com/twbs/bootstrap-sass
- github.com https://github.com/twbs/bootstrap-sass/issues/1195
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2019-10842
- snyk.io https://snyk.io/blog/malicious-remote-code-execution-backdoor-discovered-in-the-popular-bootstrap-sass-ruby-gem
- snyk.io https://snyk.io/blog/malicious-remote-code-execution-backdoor-discovered-in-the-popular-bootstrap-sass-ruby-gem/
- snyk.io https://snyk.io/vuln/SNYK-RUBY-BOOTSTRAPSASS-174093
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2019-10842
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.