Advisory

GO-2022-1071

Also known as: BIT-flux-2022-39272, BIT-kustomize-2022-39272, CVE-2022-39272, GHSA-f4p5-x4vc-mh4v

Summary

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.

Severity

Not rated by the source.

Dates

Published
2022-10-28 16:07 UTC
Modified
2026-02-04 04:05 UTC

Affected packages and fixes

github.com/fluxcd/helm-controller/api

Go · All systems

Affected

  • introduced 0, fixed 0.26.0 (semver)

Fixed versions

0.26.0

Fix

github.com/fluxcd/image-automation-controller/api

Go · All systems

Affected

  • introduced 0, fixed 0.26.1 (semver)

Fixed versions

0.26.1

Fix

  • Fixed version 0.26.1
    go get github.com/fluxcd/image-automation-controller/[email protected]

github.com/fluxcd/image-reflector-controller/api

Go · All systems

Affected

  • introduced 0, fixed 0.22.1 (semver)

Fixed versions

0.22.1

Fix

  • Fixed version 0.22.1
    go get github.com/fluxcd/image-reflector-controller/[email protected]

github.com/fluxcd/kustomize-controller/api

Go · All systems

Affected

  • introduced 0, fixed 0.30.0 (semver)

Fixed versions

0.30.0

Fix

github.com/fluxcd/notification-controller/api

Go · All systems

Affected

  • introduced 0, fixed 0.28.0 (semver)

Fixed versions

0.28.0

Fix

github.com/fluxcd/source-controller/api

Go · All systems

Affected

  • introduced 0, fixed 0.30.0 (semver)

Fixed versions

0.30.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences