{"id":"CVE-2022-3064","published":"2022-12-27T21:17:41Z","modified":"2025-04-14T17:05:01Z","title":"Excessive resource consumption in gopkg.in/yaml.v2","vendor":"gopkg.in/yaml.v2","product":"gopkg.in/yaml.v2","tier":"tail","description":{"text":"Parsing malicious or large YAML documents can consume excessive amounts of CPU or memory.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01871,"percentile":0.79893,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5","tags":[]},{"url":"https://github.com/go-yaml/yaml/releases/tag/v2.2.4","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-0956","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4SBIUECMLNC572P23DDOKJNKPJVX26SP/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PW3XC47AUW5J5M2ULJX7WCCL3B2ETLMT/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ANIOPUXWIHVRA6CEWXCGOMX3YYS6KFHG/","tags":[]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":15.98},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gopkg-in-yaml-v2","affectedVersions":[{"vendor":"gopkg.in/yaml.v2","product":"gopkg.in/yaml.v2","versions":["< 2.2.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-14T17:03:22.468273Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gopkg.in/yaml.v2","vulnerableRanges":["<2.2.4"],"patched":["2.2.4"],"from":["GHSA-6q6q-88xp-6f2r","GO-2022-0956"],"provenance":"source"}],"summary":{"text":"The gopkg.in/yaml.v2 Go library contains a flaw in its YAML parsing functionality that allows excessive resource consumption when handling malicious or very large documents. An unauthenticated remote attacker able to get a crafted YAML document parsed by an application using the library, with no user interaction or special configuration needed, can cause high CPU or memory usage, leading to denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:43Z"},"euvd":{"id":"EUVD-2022-7537","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gopkg-in-yaml-v2-cve-2019-11254","parents":[{"from":"CVE-2021-4235","to":"CVE-2022-3064","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gopkg.in/yaml.v2","fromFixed":"2.2.3","toFixed":"2.2.4","daysApart":0},{"kind":"same-code","provenance":"machine","files":["decode.go"],"commits":["https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241","https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5"],"basis":"shared function","functions":["prepare"]},{"kind":"similar","provenance":"machine","score":0.29,"basis":"same package + description similarity"}]},{"from":"CVE-2019-11254","to":"CVE-2022-3064","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["scannerc.go"],"commits":["https://github.com/go-yaml/yaml/commit/53403b58ad1b561927d19068c655246f2db79d48","https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5"],"basis":"shared function","functions":["yaml_parser_remove_simple_key"]},{"kind":"similar","provenance":"machine","score":0.46,"basis":"same package + description similarity"}]},{"from":"CVE-2022-28948","to":"CVE-2022-3064","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["decode.go"],"commits":["https://github.com/go-yaml/yaml/commit/8f96da9f5d5eff988554c1aae1784627c4bf6754","https://github.com/go-yaml/yaml/commit/f6f7691b1fdeb513f56608cd2c32c51f8194bf51","https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2021-4235","published":"2022-12-27","fixed":"2.2.3","kev":false},{"cve":"CVE-2022-3064","published":"2022-12-27","fixed":"2.2.4","kev":false},{"cve":"CVE-2019-11254","published":"2020-04-01","fixed":"2.2.8","kev":false}],"package":"Go:gopkg.in/yaml.v2"}}