Security mailing lists by PureSourceCode

CVE-2021-4235

MEDIUM 5.5CVSS 3.1

YAML Go package vulnerable to denial of service

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.

Published
27 Dec 2022
Last modified
10 Sep 2026
Assigned by
security@golang.org
NVD status
Modified
Also known as
GHSA-r88r-gmrh-7j83GO-2021-0061
Sources
NVDJSONOSV GHSA-r88r-gmrh-7j83JSONOSV GO-2021-0061JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD yaml_project yaml
cpe:2.3:a:yaml_project:yaml:*:*:*:*:*:go:*:*
< 2.2.3 2.2.3
OSV Go gopkg.in/yaml.v2 < 2.2.3 2.2.3
OSV Go github.com/go-yaml/yaml <= 2.1.0
OSV Go github.com/go-yaml/yaml all versions

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Dec 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.