ADVISORIES

Go Vulnerability Database

GO-2022-1071

Denial of service in flux controllers in github.com/fluxcd modules

Details

Flux controllers 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.

The 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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/fluxcd/helm-controller/api
All versions before 0.26.0 (fixed in 0.26.0)
Gogithub.com/fluxcd/image-automation-controller/api
All versions before 0.26.1 (fixed in 0.26.1)
Gogithub.com/fluxcd/image-reflector-controller/api
All versions before 0.22.1 (fixed in 0.22.1)
Gogithub.com/fluxcd/kustomize-controller/api
All versions before 0.30.0 (fixed in 0.30.0)
Gogithub.com/fluxcd/notification-controller/api
All versions before 0.28.0 (fixed in 0.28.0)
Gogithub.com/fluxcd/source-controller/api
All versions before 0.30.0 (fixed in 0.30.0)

References