Name | CVE-2020-8163 |
Description | The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument of a `render` call to perform a RCE. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2282-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
rails (PTS) | bullseye (security), bullseye | 2:6.0.3.7+dfsg-2+deb11u2 | fixed |
| bookworm | 2:6.1.7.3+dfsg-2~deb12u1 | fixed |
| sid, trixie | 2:6.1.7.3+dfsg-4 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
rails | source | stretch | 2:4.2.7.1-1+deb9u3 | | DLA-2282-1 | |
rails | source | (unstable) | 2:5.2.0+dfsg-2 | | | |
Notes
https://weblog.rubyonrails.org/2020/5/15/Rails-4-2-11-2-has-been-released/
https://weblog.rubyonrails.org/2020/5/16/rails-4-2-11-3-has-been-released/
https://groups.google.com/forum/#!topic/rubyonrails-security/hWuKcHyoKh0
https://github.com/rails/rails/commit/4c46a15e0a7815ca9e4cd7c7fda042eb8c1b7724 (4.2.11.2)
Follow-up needed due to breaking change: https://github.com/rails/rails/issues/39301
https://github.com/rails/rails/commit/1f3db0ad793441a0c00e85d56228fc80aafbe6c1 (4.2.11.3)
Follow-up #2:
https://github.com/rails/rails/commit/0ecaaf76d1b79cf2717cdac754e55b4114ad6599 (4-2-stable)
For rails 5.0 the issue is fixed in >= 5.0.1