CVE-2017-17920 SQL injection in n/a

High 8.1 Published Updated

Remote attackers can execute arbitrary SQL commands via the reorder method's name parameter in Ruby on Rails.

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-17920?

CVE-2017-17920 is a high-severity SQL injection vulnerability in n/a, 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 'reorder' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute arbitrary SQL commands via the 'name' 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-17920?

It affects 1 product.

Products include Rubyonrails Ruby on Rails.

How do I fix CVE-2017-17920?

No fix has been published for CVE-2017-17920 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-17920 being exploited?

There is no known exploitation of CVE-2017-17920 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2017-17920, GHSA-4w6g-25w8-c8vc.

Is CVE-2017-17920 in your software?

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

Check your SBOMs for free