CVE-2022-39272Flux2 vulnerable to Denial of Service due to Improper use of metav1.Duration
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.
What to do
Fixed builds are available from Alpine, Go: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Alpine Linux 3.24 | flux | Fixed | 0.36.0-r0 | ALPINE-CVE-2022-39272 |
| Alpine Linux 3.23 | flux | Fixed | 0.36.0-r0 | ALPINE-CVE-2022-39272 |
| Alpine Linux 3.22 | flux | Fixed | 0.36.0-r0 | ALPINE-CVE-2022-39272 |
| Alpine Linux 3.21 | flux | Fixed | 0.36.0-r0 | ALPINE-CVE-2022-39272 |
| Go library | github.com/fluxcd/flux2 | Fixed | 0.35.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/helm-controller | Fixed | 0.24.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/helm-controller/api | Fixed | 0.26.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/image-automation-controller | Fixed | 0.26.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/image-automation-controller/api | Fixed | 0.26.1 | GO-2022-1071 |
| Go library | github.com/fluxcd/image-reflector-controller | Fixed | 0.22.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/image-reflector-controller/api | Fixed | 0.22.1 | GO-2022-1071 |
| Go library | github.com/fluxcd/kustomize-controller | Fixed | 0.29.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/kustomize-controller/api | Fixed | 0.30.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/notification-controller | Fixed | 0.27.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/notification-controller/api | Fixed | 0.28.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/source-controller | Fixed | 0.30.0 | GHSA-f4p5-x4vc-mh4v |
| Go library | github.com/fluxcd/source-controller/api | Fixed | 0.30.0 | GO-2022-1071 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- fluxcd flux2: affected: < 0.35.0
References
- https://github.com/fluxcd/flux2/security/advisories/GHSA-f4p5-x4vc-mh4v
- https://github.com/kubernetes/apimachinery/issues/131
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.