CVE-2017-17917 SQL injection in n/a
Remote attackers can execute arbitrary SQL commands via the id parameter in the where method, potentially compromising data integrity and confidentiality.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2017-17917?
CVE-2017-17917 is a high-severity SQL injection vulnerability in Rubyonrails Rails, published on 29 Dec 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
SQL injection vulnerability in the 'where' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute arbitrary SQL commands via the 'id' parameter. NOTE: The vendor disputes this issue because the documentation states that this method is not intended for use with untrusted input
Weakness: CWE-89
Which versions are affected by CVE-2017-17917?
It affects 1 product.
Products include Rubyonrails Rails.
How do I fix CVE-2017-17917?
No fix has been published for CVE-2017-17917 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2017-17917 being exploited?
There is no known exploitation of CVE-2017-17917 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
- CVE-2023-22792 ReDoS based DoS vulnerability in Action Dispatch
Sources
Also known as DEBIAN-CVE-2017-17917, GHSA-vqpc-h5g8-fhrw.