High
Security advisory
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-17917
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:11 UTC · Revision 1
Source evidence
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
osv:CVE-2017-17917
Complete source record
{
"id": "8ab60cf7cf0557b692f18422a5e1c1bc179d67b297c0babb04088373b7f7970c",
"url": "https://osv.dev/vulnerability/CVE-2017-17917",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-17917",
"summary": "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",
"evidence": "osv:CVE-2017-17917",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2017-17917",
"aliases": [
"CVE-2017-17917"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/rails/rails",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "813af4655f9bf3c712cf50205eebd337070cee52"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.1.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v5.1.4",
"v5.1.4.rc1",
"v5.1.3.rc1",
"v5.1.2.rc1",
"v5.1.1",
"v5.1.0",
"v5.1.0.rc2",
"v5.1.0.rc1",
"v5.1.0.beta1",
"v5.0.0.beta4",
"v5.0.0.beta2",
"v5.0.0.beta1",
"v4.2.0.beta1",
"v4.0.0.rc1",
"v4.0.0.beta1",
"v3.2.0.rc1",
"v3.1.0.rc1",
"v3.1.0.beta1",
"v3.0.0.beta3",
"v3.0.0.beta.3",
"v2.0.1",
"v2.0.0",
"v2.0.0_RC2",
"v2.0.0_RC1",
"v2.0.0_PR",
"v1.1.1",
"v1.1.0",
"v1.1.0_RC1",
"v0.14.3",
"v0.14.1",
"v0.13.1",
"v0.13.0",
"v0.12.0",
"v0.11.1",
"v0.11.0",
"v0.10.1",
"v0.10.0",
"v0.9.5",
"v0.9.4.1",
"v0.9.4",
"v0.9.3",
"v0.9.2",
"v0.9.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-17917.json"
}
}
],
"modified": "2026-10-24T10:30:25.523246737Z",
"provider": "osv",
"references": [
"https://kay-malwarebenchmark.github.io/blog/ruby-on-rails-arbitrary-sql-injection/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-17917",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 431377,
"published_at": "2017-12-29T16:29:00.263+00:00"
}