Skip to content
OpenAdvisories
High · 7.5 CVE-2017-17042 EUVD-2017-0362GHSA-gj4p-3wh3-2rmf

Arbitrary file read vulnerability in yard server

Published Nov 28, 2017 · Updated Sep 16, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 yard 0.9.12-1 —
Debian 13 yard 0.9.12-1 —
Debian 12 yard 0.9.12-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS yard 0.9.26-1ubuntu0.1 USN-6731-1
Ubuntu 20.04 LTS yard 0.9.24-1+deb11u1build0.20.04.1 USN-6731-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS yard 0.9.12-2ubuntu0.1~esm1 USN-6731-1
Ubuntu Pro 16.04 LTS yard 0.8.7.6+git20160220-3ubuntu0.1~esm1 USN-6731-1
ReleasePackageFixed inAdvisory
SLES 12 SP3 rubygem-yard 0.8.7.3-7.3.1 SUSE-SU-2018:1890-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems yard < 0.9.11 0.9.11 GHSA-gj4p-3wh3-2rmf

Advisories 2

References