Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. yard
  4. ›
  5. CVE-2017-17042

CVE-2017-17042: Directory traversal

November 28, 2017 (updated December 20, 2017)

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

References

  • github.com/lsegal/yard/commit/b0217b3e30dc53d057b1682506333335975e62b4
  • nvd.nist.gov/vuln/detail/CVE-2017-17042

Code Behaviors & Features

Detect and mitigate CVE-2017-17042 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.9.11

Fixed versions

  • 0.9.11

Solution

Upgrade to 0.9.11 or above

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

gem/yard/CVE-2017-17042.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.