{"id":"CVE-2022-39272","aliases":["CVE-2022-39272","GHSA-f4p5-x4vc-mh4v","BIT-FLUX-2022-39272","BIT-KUSTOMIZE-2022-39272","GO-2022-1071"],"related":["CGA-hwg5-22j5-jjq4"],"kind":"vulnerability","state":"published","title":"Flux2 vulnerable to Denial of Service due to Improper use of metav1.Duration","summary":"Flux is an open and extensible continuous delivery solution for Kubernetes. Versions prior to 0.35.0 are subject to a Denial of Service. Users that have permissions to change Flux’s objects, either through a Flux source or directly within a cluster, can provide invalid data to fields `.spec.interval` or `.spec.timeout` (and structured variations of these fields), causing the entire object type to stop being processed. This issue is patched in version 0.35.0. As a workaround, Admission controllers can be employed to restrict the values that can be used for fields `.spec.interval` and `.spec.timeout`, however upgrading to the latest versions is still the recommended mitigation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Flux is an open and extensible continuous delivery solution for Kubernetes. Versions prior to 0.35.0 are subject to a Denial of Service. Users that have permissions to change Flux’s objects, either through a Flux source or directly within a cluster, can provide invalid data to fields `.spec.interval` or `.spec.timeout` (and structured variations of these fields), causing the entire object type to stop being processed. This issue is patched in version 0.35.0. As a workaround, Admission controllers can be employed to restrict the values that can be used for fields `.spec.interval` and `.spec.timeout`, however upgrading to the latest versions is still the recommended mitigation.","source":"cvelist"},{"lang":"en","text":"Flux controllers within the affected versions range are vulnerable to a denial of service attack. Users that have permissions to change Flux’s objects, either through a Flux source or directly within a cluster, can provide invalid data to fields `.spec.interval` or `.spec.timeout` (and structured variations of these fields), causing the entire object type to stop being processed.\n\nThe issue has two root causes: a) the Kubernetes type `metav1.Duration` not being fully compatible with the Go type `time.Duration` as explained on [upstream report](https://github.com/kubernetes/apimachinery/issues/131); b) lack of validation within Flux to restrict allowed values.\n\n### Workarounds\n\nAdmission controllers can be employed to restrict the values that can be used for fields `.spec.interval` and `.spec.timeout`, however upgrading to the latest versions is still the recommended mitigation.\n\n### Credits\n\nThis issue was reported by Alexander Block (@codablock) through the Flux security mailing list (as [recommended](https://fluxcd.io/security/#report-a-vulnerability)).\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in any of the affected repositories.\n- Contact us at the CNCF Flux channel.\n\n### References\n\n- https://github.com/kubernetes/apimachinery/issues/131","format":"markdown","source":"ghsa"},{"lang":"en","text":"Flux controllers are vulnerable to a denial of service attack.\n\nUsers that have permissions to change Flux's objects, either through a Flux source or directly within a cluster, can provide invalid data to fields .spec.interval or .spec.timeout (and structured variations of these fields), causing the entire object type to stop being processed.\n\nThe issue has two root causes: a) the Kubernetes type metav1.Duration is not fully compatible with the Go type time.Duration as explained in https://github.com/kubernetes/apimachinery/issues/131, and b) a lack of validation within Flux to restrict allowed values.","format":"markdown","source":"go"},{"lang":"es","text":"Flux es una solución de entrega continua abierta y extensible para Kubernetes. Las versiones anteriores a 0.35.0, están sujetas a una denegación de servicio. Los usuarios que presentan permisos para cambiar los objetos de Flux, ya sea medainyte una fuente de Flux o directamente dentro de un clúster, pueden proporcionar datos no válidos a los campos \".spec.interval\" o \".spec.timeout\" (y variaciones estructuradas de estos campos), causando que todo el tipo de objeto deje de ser procesado. Este problema ha sido corregido en versión 0.35.0. Como mitigación, pueden emplearse controladores de admisión para restringir los valores que pueden usarse para los campos \".spec.interval\" y \".spec.timeout\", aunque la actualización a las últimas versiones sigue siendo la mitigación recomendada","source":"nvd"}],"published":"2022-10-19T18:40:02.000Z","modified":"2026-09-10T03:49:46.466Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-20","CWE-1284"],"affected":[{"ranges":[{"version":"< 0.35.0","status":"affected"}],"vendor":"fluxcd","product":"flux2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.35.0"}],"ecosystem":"Go","package":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.1-alpha-1","status":"affected","fixed":"0.30.0"}],"ecosystem":"Go","package":"github.com/fluxcd/source-controller","purl":"pkg:golang/github.com/fluxcd/source-controller","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.1-alpha-1","status":"affected","fixed":"0.29.0"}],"ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","purl":"pkg:golang/github.com/fluxcd/kustomize-controller","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.1-alpha-1","status":"affected","fixed":"0.24.0"}],"ecosystem":"Go","package":"github.com/fluxcd/helm-controller","purl":"pkg:golang/github.com/fluxcd/helm-controller","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.1-alpha-1","status":"affected","fixed":"0.27.0"}],"ecosystem":"Go","package":"github.com/fluxcd/notification-controller","purl":"pkg:golang/github.com/fluxcd/notification-controller","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.26.0"}],"ecosystem":"Go","package":"github.com/fluxcd/image-automation-controller","purl":"pkg:golang/github.com/fluxcd/image-automation-controller","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.22.0"}],"ecosystem":"Go","package":"github.com/fluxcd/image-reflector-controller","purl":"pkg:golang/github.com/fluxcd/image-reflector-controller","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.26.0"}],"ecosystem":"Go","package":"github.com/fluxcd/helm-controller/api","purl":"pkg:golang/github.com/fluxcd/helm-controller/api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.26.1"}],"ecosystem":"Go","package":"github.com/fluxcd/image-automation-controller/api","purl":"pkg:golang/github.com/fluxcd/image-automation-controller/api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.22.1"}],"ecosystem":"Go","package":"github.com/fluxcd/image-reflector-controller/api","purl":"pkg:golang/github.com/fluxcd/image-reflector-controller/api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.30.0"}],"ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller/api","purl":"pkg:golang/github.com/fluxcd/kustomize-controller/api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.28.0"}],"ecosystem":"Go","package":"github.com/fluxcd/notification-controller/api","purl":"pkg:golang/github.com/fluxcd/notification-controller/api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.30.0"}],"ecosystem":"Go","package":"github.com/fluxcd/source-controller/api","purl":"pkg:golang/github.com/fluxcd/source-controller/api","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.26.0"}],"ecosystem":"Go","package":"github.com/fluxcd/helm-controller/api","purl":"pkg:golang/github.com/fluxcd/helm-controller/api","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.26.1"}],"ecosystem":"Go","package":"github.com/fluxcd/image-automation-controller/api","purl":"pkg:golang/github.com/fluxcd/image-automation-controller/api","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.22.1"}],"ecosystem":"Go","package":"github.com/fluxcd/image-reflector-controller/api","purl":"pkg:golang/github.com/fluxcd/image-reflector-controller/api","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.30.0"}],"ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller/api","purl":"pkg:golang/github.com/fluxcd/kustomize-controller/api","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.28.0"}],"ecosystem":"Go","package":"github.com/fluxcd/notification-controller/api","purl":"pkg:golang/github.com/fluxcd/notification-controller/api","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.30.0"}],"ecosystem":"Go","package":"github.com/fluxcd/source-controller/api","purl":"pkg:golang/github.com/fluxcd/source-controller/api","source":"go"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.35.0"}],"vendor":"fluxcd","product":"flux2","cpe":"cpe:2.3:a:fluxcd:flux2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.0.2","fixed":"0.24.0"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"}],"vendor":"fluxcd","product":"helm-controller","cpe":"cpe:2.3:a:fluxcd:helm-controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.26.0"}],"vendor":"fluxcd","product":"image-automation-controller","cpe":"cpe:2.3:a:fluxcd:image-automation-controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.22.0"}],"vendor":"fluxcd","product":"image-reflector-controller","cpe":"cpe:2.3:a:fluxcd:image-reflector-controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.0.2","fixed":"0.29.0"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"}],"vendor":"fluxcd","product":"kustomize-controller","cpe":"cpe:2.3:a:fluxcd:kustomize-controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.0.2","fixed":"0.27.0"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"}],"vendor":"fluxcd","product":"notification-controller","cpe":"cpe:2.3:a:fluxcd:notification-controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.0.2","fixed":"0.30.0"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"},{"status":"affected","version":"0.0.1"}],"vendor":"fluxcd","product":"source-controller","cpe":"cpe:2.3:a:fluxcd:source-controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.35.0"}],"ecosystem":"Bitnami","package":"flux","purl":"pkg:bitnami/flux","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0.0.2","status":"affected","fixed":"0.29.0"}],"ecosystem":"Bitnami","package":"kustomize","purl":"pkg:bitnami/kustomize","source":"bitnami"}],"references":[{"url":"https://github.com/fluxcd/flux2/security/advisories/GHSA-f4p5-x4vc-mh4v","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/kubernetes/apimachinery/issues/131","tags":["advisory","issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39272","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/fluxcd/helm-controller/pull/533","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/fluxcd/image-automation-controller/pull/439","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/fluxcd/image-reflector-controller/pull/314","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/fluxcd/kustomize-controller/pull/731","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/fluxcd/notification-controller/pull/420","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/fluxcd/source-controller/pull/903","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/fluxcd/flux2","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/kubernetes/apimachinery#131","tags":["web"],"sources":["ghsa","go"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1071","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-f4p5-x4vc-mh4v","tags":["advisory"],"sources":["go"]}],"credits":["Alexander Block (@codablock)"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:56:09.377Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39272","url":"https://www.cve.org/CVERecord?id=CVE-2022-39272","licence":"CVE Terms of Use","modified":"2025-04-23T16:45:22.608Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f4p5-x4vc-mh4v","url":"https://github.com/advisories/GHSA-f4p5-x4vc-mh4v","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:46.466Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-1071","url":"https://pkg.go.dev/vuln/GO-2022-1071","licence":"CC-BY-4.0","modified":"2026-02-04T04:05:08.187Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39272","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39272","licence":"Public domain","modified":"2026-06-17T04:58:02.757Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-FLUX-2022-39272","url":"https://osv.dev/vulnerability/BIT-FLUX-2022-39272","licence":"Apache-2.0","modified":"2026-09-08T08:47:32.573Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-KUSTOMIZE-2022-39272","url":"https://osv.dev/vulnerability/BIT-KUSTOMIZE-2022-39272","licence":"Apache-2.0","modified":"2026-09-08T08:48:08.023Z"}],"updatedAt":"2026-11-25T22:58:15.962Z","epss":{"score":0.00863,"percentile":0.56202,"date":"2026-11-30T12:00:22.000Z"}}