{"id":"GHSA-f4p5-x4vc-mh4v","revision":"5b89847607904de8bb9727d0328d9020","records":[{"revision":"5b89847607904de8bb9727d0328d9020","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-f4p5-x4vc-mh4v","aliases":["BIT-flux-2022-39272","BIT-kustomize-2022-39272","CVE-2022-39272","GO-2022-1071"],"title":"Improper use of metav1.Duration allows for Denial of Service","description":"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","state":0,"publishedAt":"2022-10-19T18:40:02+00:00","modifiedAt":"2026-09-10T03:49:46.4667715+00:00","affected":[{"ecosystem":"Go","name":"github.com/fluxcd/flux2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.0"},{"kind":"fixed","version":"0.35.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/source-controller","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.1-alpha-1"},{"kind":"fixed","version":"0.30.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/kustomize-controller","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.1-alpha-1"},{"kind":"fixed","version":"0.29.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/helm-controller","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.1-alpha-1"},{"kind":"fixed","version":"0.24.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/notification-controller","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.1-alpha-1"},{"kind":"fixed","version":"0.27.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/image-automation-controller","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.0"},{"kind":"fixed","version":"0.26.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/image-reflector-controller","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.0"},{"kind":"fixed","version":"0.22.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/helm-controller/api","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.26.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/image-automation-controller/api","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.26.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/image-reflector-controller/api","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.22.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/kustomize-controller/api","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.30.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/notification-controller/api","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.28.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/fluxcd/source-controller/api","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.30.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/fluxcd/flux2/security/advisories/GHSA-f4p5-x4vc-mh4v","https://nvd.nist.gov/vuln/detail/CVE-2022-39272","https://github.com/kubernetes/apimachinery/issues/131","https://github.com/fluxcd/helm-controller/pull/533","https://github.com/fluxcd/image-automation-controller/pull/439","https://github.com/fluxcd/image-reflector-controller/pull/314","https://github.com/fluxcd/kustomize-controller/pull/731","https://github.com/fluxcd/notification-controller/pull/420","https://github.com/fluxcd/source-controller/pull/903","https://github.com/fluxcd/flux2","https://github.com/kubernetes/apimachinery#131","https://pkg.go.dev/vuln/GO-2022-1071"],"sourceUrl":"https://github.com/advisories/GHSA-f4p5-x4vc-mh4v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f4p5-x4vc-mh4v","identifiers":["GHSA-f4p5-x4vc-mh4v","BIT-flux-2022-39272","BIT-kustomize-2022-39272","CVE-2022-39272","GO-2022-1071"]},"retained":false,"historicalAffected":[]}],"coverage":[]}