Bug 1519065 (CVE-2017-17042)

Summary: CVE-2017-17042 rubygem-yard: (lib/yard/core_ext/file.rb) is vulnerable to directory traversal attacks
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bhu, bkearney, cbillett, ccoleman, dedgar, dmcphers, esammons, iboverma, jaruga, jgoulding, jross, kseifried, matt, mcressma, mmorsi, ruby-packagers-sig, tomckay, vondruch, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-yard 0.9.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-01 01:24:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1519068, 1519596    
Bug Blocks: 1519074    

Description Sam Fowler 2017-11-30 02:53:50 UTC
A component of the rubygem-yard library (lib/yard/core_ext/file.rb) that is used by the yard document generation server does not block relative paths with an initial ../ sequence, which allows attackers to conduct directory traversal attacks and read arbitrary files.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-17042
https://bugzilla.novell.com/show_bug.cgi?id=1070263
http://people.canonical.com/~ubuntu-security/cve/2017/CVE-2017-17042.html
http://www.cvedetails.com/cve/CVE-2017-17042/
https://github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4

Comment 1 Sam Fowler 2017-11-30 03:01:17 UTC
Created rubygem-yard tracking bugs for this issue:

Affects: fedora-all [bug 1519068]

Comment 2 Kurt Seifried 2017-12-01 01:21:35 UTC
Created rubygem-yard tracking bugs for this issue:

Affects: openshift-1 [bug 1519596]

Comment 3 Kurt Seifried 2017-12-01 01:23:44 UTC
Statement:

This issue affects the versions of rubygem-yard as shipped with Red Hat Subscription Asset Manager 1.x and Message Routing and Grid 2.x. Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.