Lucene search

K
cvelistGoCVELIST:CVE-2021-4235
HistoryDec 27, 2022 - 9:13 p.m.

CVE-2021-4235 Denial of service in gopkg.in/yaml.v2

2022-12-2721:13:42
Go
www.cve.org
2
cve-2021-4235
denial of service
gopkg.in/yaml.v2
unbounded alias chasing
maliciously crafted yaml file
system resources
user input
dos vector

6.4 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

23.3%

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.

CNA Affected

[
  {
    "vendor": "gopkg.in/yaml.v2",
    "product": "gopkg.in/yaml.v2",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "gopkg.in/yaml.v2",
    "versions": [
      {
        "version": "0",
        "lessThan": "2.2.3",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "decoder.unmarshal"
      },
      {
        "name": "Decoder.Decode"
      },
      {
        "name": "Unmarshal"
      },
      {
        "name": "UnmarshalStrict"
      }
    ],
    "defaultStatus": "unaffected"
  },
  {
    "vendor": "github.com/go-yaml/yaml",
    "product": "github.com/go-yaml/yaml",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "github.com/go-yaml/yaml",
    "programRoutines": [
      {
        "name": "decoder.unmarshal"
      },
      {
        "name": "Decoder.Decode"
      },
      {
        "name": "Unmarshal"
      },
      {
        "name": "UnmarshalStrict"
      }
    ],
    "defaultStatus": "affected"
  }
]

6.4 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

23.3%