Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-24817— Improper kubeconfig validation allows arbitrary code execution

Quick assessment

Affected
fluxcd flux2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Flux2是云原生计算基金会(Cloud Native Computing Foundation)的一种使 Kubernetes 集群与配置源保持同步的工具。 Flux2 v0.29.0 之前版本,Flux2 helm-controller v0.19.0之前版本,Flux2 kustomize-controller v0.23.0 之前版本存在安全漏洞,该漏洞源于容易受到恶意 Kubeconfig 的代码注入攻击。

CVSS 9.9 · Critical EPSS 1.07% · P62
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-24817

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Improper kubeconfig validation allows arbitrary code execution
Source: CVE Program / CVE List V5
Vulnerability Description
Flux2 is an open and extensible continuous delivery solution for Kubernetes. Flux2 versions between 0.1.0 and 0.29.0, helm-controller 0.1.0 to v0.19.0, and kustomize-controller 0.1.0 to v0.23.0 are vulnerable to Code Injection via malicious Kubeconfig. In multi-tenancy deployments this can also lead to privilege escalation if the controller's service account has elevated permissions. Workarounds include disabling functionality via Validating Admission webhooks by restricting users from setting the `spec.kubeConfig` field in Flux `Kustomization` and `HelmRelease` objects. Additional mitigations include applying restrictive AppArmor and SELinux profiles on the controller’s pod to limit what binaries can be executed. This vulnerability is fixed in kustomize-controller v0.23.0 and helm-controller v0.19.0, both included in flux2 v0.29.0
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Flux2 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Flux2是云原生计算基金会(Cloud Native Computing Foundation)的一种使 Kubernetes 集群与配置源保持同步的工具。 Flux2 v0.29.0 之前版本,Flux2 helm-controller v0.19.0之前版本,Flux2 kustomize-controller v0.23.0 之前版本存在安全漏洞,该漏洞源于容易受到恶意 Kubeconfig 的代码注入攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
fluxcd flux2 flux2 < v0.29.0 >= v0.1.0 -

II. Public POCs for CVE-2022-24817

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-24817

登录查看更多情报信息。

Vendor Advisories for CVE-2022-24817 (1)

Same Patch Batch · fluxcd · 2022-05-06 · 3 CVEs total

CVE-2022-24877 9.9 CRITICAL Improper path handling in kustomization files allows path traversal
CVE-2022-24878 7.7 HIGH Improper path handling in Kustomization files allows for denial of service

IV. Related Vulnerabilities

V. Comments for CVE-2022-24817

No comments yet


Leave a comment