CVE-2017-17917 SQL injection in n/a

High 8.1 Published Updated

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.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-17917, GHSA-vqpc-h5g8-fhrw.

Is CVE-2017-17917 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free