Name | CVE-2017-17919 |
Description | SQL injection vulnerability in the 'order' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute arbitrary SQL commands via the 'id desc' parameter. NOTE: The vendor disputes this issue because the documentation states that this method is not intended for use with untrusted input |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
rails (PTS) | jessie, jessie (lts) | 2:4.1.8-1+deb8u9 | vulnerable |
| stretch (security), stretch (lts), stretch | 2:4.2.7.1-1+deb9u5 | vulnerable |
| buster (security), buster, buster (lts) | 2:5.2.2.1+dfsg-1+deb10u5 | vulnerable |
| bullseye (security), bullseye | 2:6.0.3.7+dfsg-2+deb11u2 | vulnerable |
| bookworm | 2:6.1.7.3+dfsg-2~deb12u1 | vulnerable |
| sid, trixie | 2:6.1.7.3+dfsg-4 | vulnerable |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
rails | source | (unstable) | (unfixed) | unimportant | | |
Notes
https://kay-malwarebenchmark.github.io/blog/ruby-on-rails-arbitrary-sql-injection/
All of those methods accept arbitrary SQL by design.