CVE-2020-8163

NameCVE-2020-8163
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2282-1, ELA-295-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rails (PTS)jessie, jessie (lts)2:4.1.8-1+deb8u9fixed
stretch (security), stretch (lts), stretch2:4.2.7.1-1+deb9u5fixed
buster2:5.2.2.1+dfsg-1+deb10u3fixed
buster (security)2:5.2.2.1+dfsg-1+deb10u5fixed
bullseye (security), bullseye2:6.0.3.7+dfsg-2+deb11u2fixed
bookworm2:6.1.7.3+dfsg-1fixed
sid, trixie2:6.1.7.3+dfsg-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
railssourcewheezy(unfixed)end-of-life
railssourcejessie2:4.1.8-1+deb8u8ELA-295-1
railssourcestretch2:4.2.7.1-1+deb9u3DLA-2282-1
railssource(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

Search for package or bug name: Reporting problems