MEDIUM5.5
GHSA-r88r-gmrh-7j83
YAML Go package vulnerable to denial of service
Quick fix
GHSA-r88r-gmrh-7j83 — gopkg.in/yaml.v2: upgrade to the fixed version with the command below.
go get gopkg.in/yaml.v2@v2.2.3Details
Due to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. If parsing user input, this may be used as a denial of service vector.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/go-yaml/yaml
Introduced in:
0No fixed version published yet for github.com/go-yaml/yaml (go modules). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-4235[ADVISORY]
- https://github.com/go-yaml/yaml/pull/375[WEB]
- https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241[WEB]
- https://github.com/go-yaml/yaml[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html[WEB]
- https://pkg.go.dev/vuln/GO-2021-0061[WEB]