#VU11647 Path traversal in Ruby and RubyGems


Published: 2018-04-10

Vulnerability identifier: #VU11647

Vulnerability risk: Low

CVSSv3.1: 4.6 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2018-1000073

CWE-ID: CWE-22

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Ruby
Universal components / Libraries / Scripting languages
RubyGems
Universal components / Libraries / Libraries used by multiple products

Vendor: Ruby

Description
The vulnerability allows a remote attacker to obtain potentially sensitive information on the target system.

The weakness exists in the install_location function of package.rb due to path traversal when writing to a symlinked basedir outside of the root. A remote attacker can gain access to potentially sensitive information.

Mitigation
Update to version 2.7.6.

Vulnerable software versions

RubyGems: 2.2.0 - 2.5.0


External links
http://blog.rubygems.org/2018/02/15/2.7.6-released.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability