CVE-2017-10784: Webrick Remote Code Execution Vulnerability
HIGHCVE-2017-10784 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-287: Improper Authentication) affecting Webrick libraries in the RubyGems ecosystem. The issue involves webrick rce vulnerability. Remediation is available by upgrading affected packages to version 1.4.0.
CVE-2017-10784 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-10784
To remediate this vulnerability, upgrade all affected Webrick dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade webrick to 1.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for webrick
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-10784, inspect your project dependencies for Webrick:
inspect dependencies for webrick
Analyze the terminal output to locate any version of Webrick in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Webrick, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-10784 Affected Webrick Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webrick
|
RubyGems |
< 1.4.0
|
1.4.0
|
References
Frequently Asked Questions
What is CVE-2017-10784?
Which Webrick versions are affected?
What version fixes CVE-2017-10784?
Is webrick affected?
What is the CVSS score of CVE-2017-10784?
What CWE is associated with CVE-2017-10784?
How can I check RubyGems dependencies for CVE-2017-10784?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-369m-2gv6-mw28",
"modified" : "2023-07-27T14:58:44Z",
"published" : "2022-05-14T02:03:29Z",
"aliases" : [ "CVE-2017-10784" ],
"summary" : "WEBrick RCE Vulnerability",
"details" : "The Basic authentication code in WEBrick library in Ruby before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1 allows remote attackers to inject terminal emulator escape sequences into its log and possibly execute arbitrary commands via a crafted user name.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "webrick"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-10784"
}, {
"type" : "WEB",
"url" : "https://github.com/ruby/ruby/commit/6617c41292"
}, {
"type" : "WEB",
"url" : "https://github.com/ruby/webrick/commit/4ac0f3843ab82d1c31e1cfc719409208adef7813"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/223363"
}, {
"type" : "WEB",
"url" : "https://www.ruby-lang.org/en/news/2017/09/14/webrick-basic-auth-escape-sequence-injection-cve-2017-10784"
}, {
"type" : "WEB",
"url" : "https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released"
}, {
"type" : "WEB",
"url" : "https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2017/dsa-4031"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20211025092552/http://www.securitytracker.com/id/1039363"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210919031115/http://www.securitytracker.com/id/1042004"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210621131814/http://www.securityfocus.com/bid/100853"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3685-1"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3528-1"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201710-18"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2017-10784.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ruby/webrick"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0585"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0583"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0378"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2017:3485"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-26T20:26:17Z",
"nvd_published_at" : "2017-09-19T17:29:00Z"
}
}