Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-f4p5-x4vc-mh4v

Опубликовано: 19 окт. 2022
Источник: github
Github: Прошло ревью
CVSS3: 5

Описание

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.

Workarounds

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.

Credits

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:

  • Open an issue in any of the affected repositories.
  • Contact us at the CNCF Flux channel.

References

Пакеты

Наименование

github.com/fluxcd/flux2

go
Затронутые версииВерсия исправления

>= 0.1.0, < 0.35.0

0.35.0

Наименование

github.com/fluxcd/source-controller

go
Затронутые версииВерсия исправления

>= 0.0.1-alpha-1, < 0.30.0

0.30.0

Наименование

github.com/fluxcd/kustomize-controller

go
Затронутые версииВерсия исправления

>= 0.0.1-alpha-1, < 0.29.0

0.29.0

Наименование

github.com/fluxcd/helm-controller

go
Затронутые версииВерсия исправления

>= 0.0.1-alpha-1, < 0.24.0

0.24.0

Наименование

github.com/fluxcd/notification-controller

go
Затронутые версииВерсия исправления

>= 0.0.1-alpha-1, < 0.27.0

0.27.0

Наименование

github.com/fluxcd/image-automation-controller

go
Затронутые версииВерсия исправления

>= 0.1.0, < 0.26.0

0.26.0

Наименование

github.com/fluxcd/image-reflector-controller

go
Затронутые версииВерсия исправления

>= 0.1.0, < 0.22.0

0.22.0

Наименование

github.com/fluxcd/helm-controller/api

go
Затронутые версииВерсия исправления

< 0.26.0

0.26.0

Наименование

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

go
Затронутые версииВерсия исправления

< 0.26.1

0.26.1

Наименование

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

go
Затронутые версииВерсия исправления

< 0.22.1

0.22.1

Наименование

github.com/fluxcd/kustomize-controller/api

go
Затронутые версииВерсия исправления

< 0.30.0

0.30.0

Наименование

github.com/fluxcd/notification-controller/api

go
Затронутые версииВерсия исправления

< 0.28.0

0.28.0

Наименование

github.com/fluxcd/source-controller/api

go
Затронутые версииВерсия исправления

< 0.30.0

0.30.0

EPSS

Процентиль: 54%
0.00311
Низкий

5 Medium

CVSS3

Дефекты

CWE-20

Связанные уязвимости

CVSS3: 5
nvd
больше 3 лет назад

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.

EPSS

Процентиль: 54%
0.00311
Низкий

5 Medium

CVSS3

Дефекты

CWE-20