CVE catalog

CVE-2021-4235

golang-yaml.v2: CVE-2021-4235

[CVE catalog]

Severity
Medium · CVSS 5.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debiangolang-yaml.v2sid2.4.4-1fixed
Debiangolang-yaml.v2forky2.4.4-1fixed
Debiangolang-yaml.v2trixie2.4.0-5fixed
Debiangolang-yaml.v2bookworm2.4.0-4fixed
Ubuntugolang-yaml.v2pro0.0+git20170407.0.cd8b52f-1ubuntu1vulnerable
Ubuntugolang-yaml.v2pro0.0+git20170407.0.cd8b52f-1ubuntu2vulnerable
Ubuntugolang-yaml.v2pro0.0+git20170407.0.cd8b52f-1ubuntu2+esm1fixed
Ubuntugolang-yaml.v220.042.2.2-1vulnerable
Ubuntugolang-yaml.v220.042.2.2-1ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-yaml.v2sourcesid2.2.8-1not yet assignedNot reportedNot reported
Debiangolang-yaml.v2sourceforky2.2.8-1not yet assignedNot reportedNot reported
Debiangolang-yaml.v2sourcetrixie2.2.8-1not yet assignedNot reportedNot reported
Debiangolang-yaml.v2sourcebookworm2.2.8-1not yet assignedNot reportedNot reported
Ubuntugolang-yaml.v2debpro0.0+git20170407.0.cd8b52f-1ubuntu2+esm1Not reportedUSN-6287-1Not reported
Ubuntugolang-yaml.v2deb20.042.2.2-1ubuntu0.1Not reportedUSN-6287-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-yaml.v2]

    Details (2)
    • 2.4.0-4 · all · bookworm

      Fixed · Fixed: 2.2.8-1

      dsa · golang-yaml.v2 · debian · bookworm; dsa · golang-yaml.v2 · debian · 12

    • 2.4.0-4 · all · bookworm

      Fixed · Fixed: 2.2.8-1

      dsa · golang-yaml.v2 · debian · bookworm; dsa · golang-yaml.v2 · debian · 12

[Debian 13 (Trixie)]

  • Source package: [golang-yaml.v2]

    Details (2)
    • 2.4.0-5 · all · trixie

      Fixed · Fixed: 2.2.8-1

      dsa · golang-yaml.v2 · debian · 13

    • 2.4.0-5 · all · trixie

      Fixed · Fixed: 2.2.8-1

      dsa · golang-yaml.v2 · debian · 13

Observed:

References