An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1mNHA1LXg0dmMtbWg0ds4AAvcq

Improper use of metav1.Duration allows for Denial of Service

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.

The 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; b) lack of validation within Flux to restrict allowed values.


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.


This issue was reported by Alexander Block (@codablock) through the Flux security mailing list (as recommended).

For more information

If you have any questions or comments about this advisory:


Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 12 months ago
Updated: 8 months ago

CVSS Score: 5.0
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L

Identifiers: GHSA-f4p5-x4vc-mh4v, CVE-2022-39272

Affected Packages
Versions: >= 0.1.0, < 0.22.0
Fixed in: 0.22.0
Versions: >= 0.1.0, < 0.26.0
Fixed in: 0.26.0
Versions: >= 0.0.1-alpha-1, < 0.27.0
Fixed in: 0.27.0
Versions: >= 0.0.1-alpha-1, < 0.24.0
Fixed in: 0.24.0
Versions: >= 0.0.1-alpha-1, < 0.29.0
Fixed in: 0.29.0
Versions: >= 0.0.1-alpha-1, < 0.30.0
Fixed in: 0.30.0
Versions: >= 0.1.0, < 0.35.0
Fixed in: 0.35.0