{"id":"CVE-2017-10784","published":"2017-09-19T17:00:00Z","modified":"2024-08-05T17:50:11Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.16412,"percentile":0.97054,"provenance":"source"},"cwes":[],"references":[{"url":"https://usn.ubuntu.com/3685-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0585","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://usn.ubuntu.com/3528-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.securityfocus.com/bid/100853","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0378","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securitytracker.com/id/1042004","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.debian.org/security/2017/dsa-4031","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id/1039363","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3485","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0583","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.ruby-lang.org/en/news/2017/09/14/webrick-basic-auth-escape-sequence-injection-cve-2017-10784/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/201710-18","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":19.41}]},"affected":[{"ecosystem":"RubyGems","package":"webrick","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"from":["GHSA-369m-2gv6-mw28"],"provenance":"source"}],"summary":{"text":"The Basic authentication code in the WEBrick library bundled with Ruby (versions before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1) fails to sanitise user names before logging them. An unauthenticated remote attacker who can send crafted Basic authentication requests can inject terminal emulator escape sequences into the server log, which could potentially lead to arbitrary command execution if an administrator views the log in a vulnerable terminal.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:44:45Z"},"euvd":{"id":"EUVD-2022-2118","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-webrick-cve-2008-3656","parents":[{"from":"CVE-2008-4310","to":"CVE-2017-10784","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/webrick/httputils.rb"],"commits":["https://github.com/ruby/webrick/commit/b2ccd5ff7ddd67a4548299e110dcc5a4728a5534","https://github.com/ruby/webrick/commit/4ac0f3843ab82d1c31e1cfc719409208adef7813"],"basis":"shared function","functions":["normalize_path"]}]}]}}