
CVE catalog
CVE-2021-4235
golang-yaml.v2: CVE-2021-4235
- Severity
- Medium · CVSS 5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.43% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-yaml.v2 | sid | 2.4.4-1 | fixed |
| Debian | golang-yaml.v2 | forky | 2.4.4-1 | fixed |
| Debian | golang-yaml.v2 | trixie | 2.4.0-5 | fixed |
| Debian | golang-yaml.v2 | bookworm | 2.4.0-4 | fixed |
| Ubuntu | golang-yaml.v2 | pro | 0.0+git20170407.0.cd8b52f-1ubuntu1 | vulnerable |
| Ubuntu | golang-yaml.v2 | pro | 0.0+git20170407.0.cd8b52f-1ubuntu2 | vulnerable |
| Ubuntu | golang-yaml.v2 | pro | 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1 | fixed |
| Ubuntu | golang-yaml.v2 | 20.04 | 2.2.2-1 | vulnerable |
| Ubuntu | golang-yaml.v2 | 20.04 | 2.2.2-1ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-yaml.v2 | source | sid | 2.2.8-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-yaml.v2 | source | forky | 2.2.8-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-yaml.v2 | source | trixie | 2.2.8-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-yaml.v2 | source | bookworm | 2.2.8-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | golang-yaml.v2 | deb | pro | 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1 | Not reported | USN-6287-1 | Not reported |
| Ubuntu | golang-yaml.v2 | deb | 20.04 | 2.2.2-1ubuntu0.1 | Not reported | USN-6287-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [golang-gopkg-yaml.v2-dev]Fixed
Source package: [golang-yaml.v2]
Details (2)
2.4.0-4· all · bookwormFixed · Fixed:
2.2.8-1dsa · golang-yaml.v2 · debian · bookworm; dsa · golang-yaml.v2 · debian · 12
2.4.0-4· all · bookwormFixed · Fixed:
2.2.8-1dsa · golang-yaml.v2 · debian · bookworm; dsa · golang-yaml.v2 · debian · 12
[Debian 13 (Trixie)]
- [golang-gopkg-yaml.v2-dev]Fixed
Source package: [golang-yaml.v2]
Details (2)
2.4.0-5· all · trixieFixed · Fixed:
2.2.8-1dsa · golang-yaml.v2 · debian · 13
2.4.0-5· all · trixieFixed · Fixed:
2.2.8-1dsa · golang-yaml.v2 · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-4235]
- [https://osv.dev/vulnerability/DLA-3479-1]
- [https://osv.dev/vulnerability/USN-6287-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-4235]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-4235.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-0111.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]