GitHub Advisoryadvisory · RubyGems

GHSA-gj4p-3wh3-2rmf Arbitrary file read vulnerability in yard server

HIGH Published 2017-12-21 Modified 2023-07-05 Official page ↗
Aliases
CVE-2017-17042
Ecosystem
RubyGems
Packages
yard
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2020-06-16

Affected packages

• RubyGems yard: < 0.9.11 → fixed in 0.9.11

Description

`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.

Related

Alias · CVE (1)

  • CVE-2017-17042 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… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References