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, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-2282-1
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rails (PTS)stretch2:4.2.7.1-1+deb9u2vulnerable
stretch (security)2:4.2.7.1-1+deb9u3fixed
buster2:5.2.2.1+dfsg-1+deb10u1fixed
buster (security)2:5.2.2.1+dfsg-1+deb10u2fixed
bullseye, sid2:6.0.3.3+dfsg-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
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