[USN-6731-1] YARD vulnerabilities

Giampaolo Fresi Roglia giampaolo.fresi.roglia at canonical.com
Mon Apr 15 10:55:58 UTC 2024


==========================================================================
Ubuntu Security Notice USN-6731-1
April 15, 2024

yard vulnerabilities
==========================================================================

A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 23.10
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS (Available with Ubuntu Pro)
- Ubuntu 16.04 LTS (Available with Ubuntu Pro)

Summary:

Several security issues were fixed in yard.

Software Description:
- yard: Ruby documentation tool

Details:

It was discovered that 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. This issue only
affected Ubuntu 16.04 LTS. (CVE-2017-17042)

It was discovered that yard before 0.9.20 is affected by a path
traversal vulnerability, allowing HTTP requests to access arbitrary
files under certain conditions. This issue only affected Ubuntu 18.04
LTS. (CVE-2019-1020001)

Aviv Keller discovered that the "frames.html" file within the Yard
Doc's generated documentation is vulnerable to Cross-Site Scripting
(XSS) attacks due to inadequate sanitization of user input within the
JavaScript segment of the "frames.erb" template file. (CVE-2024-27285)

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 23.10:
  yard                            0.9.28-2ubuntu0.1

Ubuntu 22.04 LTS:
  yard                            0.9.26-1ubuntu0.1

Ubuntu 20.04 LTS:
  yard                            0.9.24-1+deb11u1build0.20.04.1

Ubuntu 18.04 LTS (Available with Ubuntu Pro):
  yard                            0.9.12-2ubuntu0.1~esm1

Ubuntu 16.04 LTS (Available with Ubuntu Pro):
  yard                            0.8.7.6+git20160220-3ubuntu0.1~esm1

In general, a standard system update will make all the necessary changes.

References:
  https://ubuntu.com/security/notices/USN-6731-1
  CVE-2017-17042, CVE-2019-1020001, CVE-2024-27285

Package Information:
  https://launchpad.net/ubuntu/+source/yard/0.9.28-2ubuntu0.1
  https://launchpad.net/ubuntu/+source/yard/0.9.26-1ubuntu0.1
  https://launchpad.net/ubuntu/+source/yard/0.9.24-1+deb11u1build0.20.04.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 710 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-security-announce/attachments/20240415/b7bc38d7/attachment.sig>


More information about the ubuntu-security-announce mailing list