===========================================================================
             AUSCERT External Security Bulletin Redistribution             
                                                                           
                               ESB-2024.2321                               
                     USN-6731-1: YARD vulnerabilities                      
                               16 April 2024                               
                                                                           
===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           YARD                                                    
Publisher:         Ubuntu                                                  
Operating System:  Ubuntu                                                  
Resolution:        Patch/Upgrade                                           
CVE Names:         CVE-2024-27285 CVE-2019-1020001 CVE-2017-17042          

Original Bulletin:
   https://ubuntu.com/security/notices/USN-6731-1

Comment: CVSS (Max):  7.5 CVE-2019-1020001 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)
         CVSS Source: Red Hat, [Ubuntu]                                    
         Calculator:  https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N


- --------------------------BEGIN INCLUDED TEXT--------------------

USN-6731-1: YARD vulnerabilities

15 April 2024

Several security issues were fixed in yard.

Releases

  o Ubuntu 23.10
  o Ubuntu 22.04 LTS
  o Ubuntu 20.04 LTS
  o Ubuntu 18.04 ESM
  o Ubuntu 16.04 ESM

Packages

  o 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

  o yard - 0.9.28-2ubuntu0.1

Ubuntu 22.04

  o yard - 0.9.26-1ubuntu0.1

Ubuntu 20.04

  o yard - 0.9.24-1+deb11u1build0.20.04.1

Ubuntu 18.04

  o yard - 0.9.12-2ubuntu0.1~esm1
    Available with Ubuntu Pro

Ubuntu 16.04

  o yard - 0.8.7.6+git20160220-3ubuntu0.1~esm1
    Available with Ubuntu Pro

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

References

  o CVE-2017-17042
  o CVE-2019-1020001
  o CVE-2024-27285

- --------------------------END INCLUDED TEXT----------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================