github.com/kgateway-dev/kgateway/v2 · V2: Kgateway transformation policy template can emit files from the container
Affects github.com/kgateway-dev/kgateway/v2Source GCVE Database
CVSS 6.3 Medium : upgrade to 2.0.5 when convenient.
Data as of 13 Nov 2026, 19:45 UTC
- Patch
- Available – fixed in 2.0.5, 2.1.0
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:HWhat to do
Upgrade github.com/kgateway-dev/kgateway/v2 to 2.0.5; github.com/kgateway-dev/kgateway/v2 to 2.1.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/kgateway-dev/kgateway/v2 | Affected
| Fixed in
|
| Gogithub.com/kgateway-dev/kgateway/v2 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Kgateway to version 2.0.5 or 2.1.0, which include fixes preventing file access via transformation templates. If upgrading immediately is not possible and transformations are not in use, restrict or disallow TrafficPolicy creation or transformation usage using a ValidatingAdmissionPolicy to prevent exploitation.
Description
Kgateway versions prior to 2.0.5 and certain 2.1.0 pre-release versions contain a vulnerability in the transformation policy template feature that allows users with TrafficPolicy creation permissions to read arbitrary files from the dataplane container filesystem. This can expose configuration files, contents of custom mounted volumes, and any files accessible to the dataplane container process. The vulnerability has been fixed in versions 2.0.5 and 2.1.0.
References
- github.com/kgateway-dev/kgateway/security/advisories/GHSA-5pmx-7r6r-wfqq (opens in a new tab)
- github.com/kgateway-dev/kgateway/pull/12528 (opens in a new tab)
- github.com/kgateway-dev/kgateway/pull/12535 (opens in a new tab)
- github.com/kgateway-dev/kgateway (opens in a new tab)
- github.com/solo-io/envoy-gloo/releases/tag/v1.34.6-patch3 (opens in a new tab)
- github.com/solo-io/envoy-gloo/releases/tag/v1.35.2-patch4 (opens in a new tab)