Skip to content

CVE-2022-39272 Flux2 vulnerable to Denial of Service due to Improper use of metav1.Duration

MediumCVSS 4.3 EPSS 0.79%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Kubernetes

Description

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.

Upgrade path

19 packages: 19 fixed.

PackageAffectedFixed inStatus
alpine/flux(Alpine v3.21) < 0.36.0-r0 0.36.0-r0 Fixed
alpine/flux(Alpine v3.22) < 0.36.0-r0 0.36.0-r0 Fixed
alpine/flux(Alpine v3.23) < 0.36.0-r0 0.36.0-r0 Fixed
alpine/flux(Alpine v3.24) < 0.36.0-r0 0.36.0-r0 Fixed
fluxcd github.com/fluxcd/flux2 = < 0.35.0; >= 0.1.0, < 0.35.0 0.35.0 Fixed
fluxcd github.com/fluxcd/flux2(Go) >= 0.1.0, < 0.35.0 0.35.0 Fixed
fluxcd github.com/fluxcd/helm-controller = 0.0.1-alpha1; = 0.0.1-alpha2; = 0.0.1-beta1; = 0.0.1-beta2 +3 more 0.24.0 Fixed
fluxcd github.com/fluxcd/helm-controller(Go) >= 0.0.1-alpha-1, < 0.24.0 0.24.0 Fixed
fluxcd github.com/fluxcd/helm-controller/api(Go) < 0.22.1; < 0.26.0; < 0.26.1; < 0.28.0 +1 more 0.22.1, 0.26.0, 0.26.1, 0.28.0, 0.30.0 Fixed
fluxcd github.com/fluxcd/image-automation-controller >= 0.1.0, < 0.26.0 0.26.0 Fixed
fluxcd github.com/fluxcd/image-automation-controller(Go) >= 0.1.0, < 0.26.0 0.26.0 Fixed
fluxcd github.com/fluxcd/image-reflector-controller >= 0.1.0, < 0.22.0 0.22.0 Fixed
fluxcd github.com/fluxcd/image-reflector-controller(Go) >= 0.1.0, < 0.22.0 0.22.0 Fixed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha1; = 0.0.1-alpha2; = 0.0.1-alpha3; = 0.0.1-alpha4 +8 more 0.29.0 Fixed
fluxcd github.com/fluxcd/kustomize-controller(Go) >= 0.0.1-alpha-1, < 0.29.0 0.29.0 Fixed
fluxcd github.com/fluxcd/notification-controller = 0.0.1-alpha1; = 0.0.1-alpha2; = 0.0.1-beta1; >= 0.0.2, < 0.27.0 0.27.0 Fixed
fluxcd github.com/fluxcd/notification-controller(Go) >= 0.0.1-alpha-1, < 0.27.0 0.27.0 Fixed
fluxcd source-controller = 0.0.1-alpha1; = 0.0.1-alpha2; = 0.0.1-alpha3; = 0.0.1-alpha4 +5 more 0.30.0 Fixed
fluxcd source-controller(Go) >= 0.0.1-alpha-1, < 0.30.0 0.30.0 Fixed

Affected products

ProductAffected versionsFixed in
fluxcd github.com/fluxcd/flux2(Go) >= 0.1.0, < 0.35.0 0.35.0
fluxcd source-controller(Go) >= 0.0.1-alpha-1, < 0.30.0 0.30.0
fluxcd github.com/fluxcd/kustomize-controller(Go) >= 0.0.1-alpha-1, < 0.29.0 0.29.0
fluxcd github.com/fluxcd/helm-controller(Go) >= 0.0.1-alpha-1, < 0.24.0 0.24.0
fluxcd github.com/fluxcd/notification-controller(Go) >= 0.0.1-alpha-1, < 0.27.0 0.27.0
fluxcd github.com/fluxcd/image-automation-controller(Go) >= 0.1.0, < 0.26.0 0.26.0
fluxcd github.com/fluxcd/image-reflector-controller(Go) >= 0.1.0, < 0.22.0 0.22.0
fluxcd github.com/fluxcd/helm-controller/api(Go) < 0.26.0 0.26.0
fluxcd github.com/fluxcd/helm-controller/api(Go) < 0.26.1 0.26.1
fluxcd github.com/fluxcd/helm-controller/api(Go) < 0.22.1 0.22.1
fluxcd github.com/fluxcd/helm-controller/api(Go) < 0.30.0 0.30.0
fluxcd github.com/fluxcd/helm-controller/api(Go) < 0.28.0 0.28.0
fluxcd github.com/fluxcd/flux2 = < 0.35.0 No fix listed
fluxcd github.com/fluxcd/flux2 >= 0.1.0, < 0.35.0 0.35.0
fluxcd github.com/fluxcd/helm-controller >= 0.0.2, < 0.24.0 0.24.0
fluxcd github.com/fluxcd/helm-controller = 0.0.1-alpha1 No fix listed
fluxcd github.com/fluxcd/helm-controller = 0.0.1-alpha2 No fix listed
fluxcd github.com/fluxcd/helm-controller = 0.0.1-beta1 No fix listed
fluxcd github.com/fluxcd/helm-controller = 0.0.1-beta2 No fix listed
fluxcd github.com/fluxcd/helm-controller = 0.0.1-beta3 No fix listed
fluxcd github.com/fluxcd/helm-controller = 0.0.1-beta4 No fix listed
fluxcd github.com/fluxcd/image-automation-controller >= 0.1.0, < 0.26.0 0.26.0
fluxcd github.com/fluxcd/image-reflector-controller >= 0.1.0, < 0.22.0 0.22.0
fluxcd github.com/fluxcd/kustomize-controller >= 0.0.2, < 0.29.0 0.29.0
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha1 No fix listed
Show 27 more
ProductAffected versionsFixed in
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha2 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha3 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha4 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha5 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha6 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha7 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha8 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-alpha9 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-beta1 No fix listed
fluxcd github.com/fluxcd/kustomize-controller = 0.0.1-beta2 No fix listed
fluxcd github.com/fluxcd/notification-controller >= 0.0.2, < 0.27.0 0.27.0
fluxcd github.com/fluxcd/notification-controller = 0.0.1-alpha1 No fix listed
fluxcd github.com/fluxcd/notification-controller = 0.0.1-alpha2 No fix listed
fluxcd github.com/fluxcd/notification-controller = 0.0.1-beta1 No fix listed
fluxcd source-controller >= 0.0.2, < 0.30.0 0.30.0
fluxcd source-controller = 0.0.1-alpha1 No fix listed
fluxcd source-controller = 0.0.1-alpha2 No fix listed
fluxcd source-controller = 0.0.1-alpha3 No fix listed
fluxcd source-controller = 0.0.1-alpha4 No fix listed
fluxcd source-controller = 0.0.1-alpha5 No fix listed
fluxcd source-controller = 0.0.1-alpha6 No fix listed
fluxcd source-controller = 0.0.1-beta1 No fix listed
fluxcd source-controller = 0.0.1-beta2 No fix listed
alpine/flux(Alpine:v3.21) < 0.36.0-r0 0.36.0-r0
alpine/flux(Alpine:v3.22) < 0.36.0-r0 0.36.0-r0
alpine/flux(Alpine:v3.23) < 0.36.0-r0 0.36.0-r0
alpine/flux(Alpine:v3.24) < 0.36.0-r0 0.36.0-r0

References