Directory Traversal Affecting yard package, versions <0.8.7.6+git20160220-3ubuntu0.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.89% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1604-YARD-267374
  • published28 Nov 2017
  • disclosed28 Nov 2017

Introduced: 28 Nov 2017

CVE-2017-17042  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Ubuntu:16.04 yard to version 0.8.7.6+git20160220-3ubuntu0.1~esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream yard package and not the yard package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 relevant fixed versions and status.

lib/yard/core_ext/file.rb in the server in YARD before 0.9.11 does not block relative paths with an initial ../ sequence, which allows attackers to conduct directory traversal attacks and read arbitrary files.