{"id":"CVE-2022-39272","aliases":["BIT-flux-2022-39272","BIT-kustomize-2022-39272","GHSA-f4p5-x4vc-mh4v","GO-2022-1071"],"url":"https://o3.security/vulnerability/CVE-2022-39272","summary":"Flux2 vulnerable to Denial of Service due to Improper use of metav1.Duration","details":"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\n\n","published":"2022-10-21T00:00:00Z","modified":"2026-09-09T03:45:31.472081884Z","cvss":{"score":5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/fluxcd/flux2","fixedVersion":"0.35.0"},{"ecosystem":"Go","name":"github.com/fluxcd/source-controller","fixedVersion":"0.30.0"},{"ecosystem":"Go","name":"github.com/fluxcd/kustomize-controller","fixedVersion":"0.29.0"},{"ecosystem":"Go","name":"github.com/fluxcd/helm-controller","fixedVersion":"0.24.0"},{"ecosystem":"Go","name":"github.com/fluxcd/notification-controller","fixedVersion":"0.27.0"},{"ecosystem":"Go","name":"github.com/fluxcd/image-automation-controller","fixedVersion":"0.26.0"},{"ecosystem":"Go","name":"github.com/fluxcd/image-reflector-controller","fixedVersion":"0.22.0"},{"ecosystem":"Go","name":"github.com/fluxcd/helm-controller/api","fixedVersion":"0.26.0"},{"ecosystem":"Go","name":"github.com/fluxcd/image-automation-controller/api","fixedVersion":"0.26.1"},{"ecosystem":"Go","name":"github.com/fluxcd/image-reflector-controller/api","fixedVersion":"0.22.1"},{"ecosystem":"Go","name":"github.com/fluxcd/kustomize-controller/api","fixedVersion":"0.30.0"},{"ecosystem":"Go","name":"github.com/fluxcd/notification-controller/api","fixedVersion":"0.28.0"},{"ecosystem":"Go","name":"github.com/fluxcd/source-controller/api","fixedVersion":"0.30.0"}],"fix":{"url":"https://github.com/fluxcd/helm-controller/pull/533","label":"fluxcd/helm-controller#533"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39272.json"},{"type":"ADVISORY","url":"https://github.com/fluxcd/flux2/security/advisories/GHSA-f4p5-x4vc-mh4v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39272"},{"type":"REPORT","url":"https://github.com/kubernetes/apimachinery/issues/131"},{"type":"WEB","url":"https://github.com/fluxcd/helm-controller/pull/533"},{"type":"WEB","url":"https://github.com/fluxcd/image-automation-controller/pull/439"},{"type":"WEB","url":"https://github.com/fluxcd/image-reflector-controller/pull/314"},{"type":"WEB","url":"https://github.com/fluxcd/kustomize-controller/pull/731"},{"type":"WEB","url":"https://github.com/fluxcd/notification-controller/pull/420"},{"type":"WEB","url":"https://github.com/fluxcd/source-controller/pull/903"},{"type":"PACKAGE","url":"https://github.com/fluxcd/flux2"},{"type":"WEB","url":"https://github.com/kubernetes/apimachinery#131"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-1071"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-09T03:45:31.472081884Z"}}