---
title: 'USN-6287-1: Go yaml vulnerabilities | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-6287-1
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-6287-1

---

# USN-6287-1: Go yaml vulnerabilities

Publication date

14 August 2023

Overview

Several security issues were patched in the Go yaml package.

Releases

[20.04 LTS](https://ubuntu.com/security/notices?release=focal)
[18.04 LTS](https://ubuntu.com/security/notices?release=bionic)
[16.04 LTS](https://ubuntu.com/security/notices?release=xenial)

---

Open side navigation

## Packages

* [golang-yaml.v2](https://ubuntu.com/security/cves?package=golang-yaml.v2) - YAML support for the Go language

## Details

Simon Ferquel discovered that the Go yaml package incorrectly handled
certain YAML documents. If a user or an automated system were tricked
into opening a specially crafted input file, a remote attacker could
possibly use this issue to cause the system to crash, resulting in
a denial of service. ([CVE-2021-4235](https://ubuntu.com/security/CVE-2021-4235))

It was discovered that the Go yaml package incorrectly handled
certain large YAML documents. If a user or an automated system were tricked
into opening a specially crafted input file, a remote attacker could
possibly use this issue to cause the system to crash, resulting in
a denial of service. ([CVE-2022-3064](https://ubuntu.com/security/CVE-2022-3064))

## Update instructions

After a standard system update anything that depends on golang-yaml.v2 needs
to be rebuilt to make all the necessary changes.

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

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

| Ubuntu Release | Package Version |
| --- | --- |
| 20.04 LTS focal | [golang-gopkg-yaml.v2-dev](https://launchpad.net/ubuntu/+source/golang-yaml.v2) –  [2.2.2-1ubuntu0.1](https://launchpad.net/ubuntu/+source/golang-yaml.v2/2.2.2-1ubuntu0.1) | | |
| [golang-yaml.v2-dev](https://launchpad.net/ubuntu/+source/golang-yaml.v2) –  [2.2.2-1ubuntu0.1](https://launchpad.net/ubuntu/+source/golang-yaml.v2/2.2.2-1ubuntu0.1) | | |
| 18.04 LTS bionic | [golang-gopkg-yaml.v2-dev](https://launchpad.net/ubuntu/+source/golang-yaml.v2) –  0.0+git20170407.0.cd8b52f-1ubuntu2+esm1   Ubuntu Pro | | |
| [golang-yaml.v2-dev](https://launchpad.net/ubuntu/+source/golang-yaml.v2) –  0.0+git20170407.0.cd8b52f-1ubuntu2+esm1   Ubuntu Pro | | |
| 16.04 LTS xenial | [golang-yaml.v2-dev](https://launchpad.net/ubuntu/+source/golang-yaml.v2) –  0.0+git20160301.0.a83829b-1ubuntu0.1~esm1   Ubuntu Pro | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2022-3064](https://ubuntu.com/security/CVE-2022-3064)
* [CVE-2021-4235](https://ubuntu.com/security/CVE-2021-4235)
