KubeVela Terraform remote loader DoS via unbounded file read
CVE-2026-55108 · GHSA-fmgp-q6jx-gg3x
- Affected
- Go github.com/oam-dev/kubevela < 1.9.14; >= 1.10.0-alpha.1, < 1.10.9; >= 1.11.0-alpha.1, < 1.11.0-alpha.4
- Fixed in
- 1.11.0-alpha.41.10.91.9.14· Vendor fix available
- Issue
- KubeVela's Terraform remote configuration loader can be abused to make vela-core read an unbounded byte stream into memory, causing an out-of-memory kill and a control-plane denial of service. The issue is reachable when a user with permission to create or update a core.oam.dev/v1beta1 ComponentDefinition registers a Terraform remote schematic that points to a malicious or compromised git repository. The repository can contain a variables.tf symlink that resolves to /dev/zero after checkout. vela-core follows the symlink and calls os.ReadFile before HCL parsing, so memory grows until the controller is OOM killed. Details The affected code is in pkg/controller/utils/capability.go, inside GetTerraformConfigurationFromRemote: https://github.com/kubevela/kubevela/blob/a24d3a9c6/pkg/controller/utils/capability.go#L231-L242 When a ComponentDefinition uses: the controller clones the user-supplied git repository and then reads variables.tf or main.tf from the checkout. The read path…
Recommended action: Upgrade to 1.11.0-alpha.4 (pre-release), 1.10.9 or 1.9.14 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.