# GO-2025-4095 - Kgateway transformation policy template can emit files from the container in github.com/kgateway-dev/kgateway

Source: https://junglewise.ai/threats/go-2025-4095-kgateway-transformation-policy-template-can-emit-files-c805191d  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-17  
License: CC BY 4.0 with a link back

Severity: info · Published 2025-11-17

Kgateway transformation policy template can emit files from the container in github.com/kgateway-dev/kgateway

Technologies: [github.com/kgateway-dev/kgateway/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-kgateway-dev-kgateway-v2). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 17 November 2025.

**Which products and versions are affected?** github.com/kgateway-dev/kgateway (Go) SEMVER:introduced=0; github.com/kgateway-dev/kgateway/v2 (Go) SEMVER:introduced=0,fixed=2.0.5,introduced=2.1.0-agw-cel-rbac,fixed=2.1.0.

**Is there a fix for This vulnerability?** Yes. github.com/kgateway-dev/kgateway/v2 (Go): upgrade to 2.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run github.com/kgateway-dev/kgateway (Go) or github.com/kgateway-dev/kgateway/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/kgateway-dev/kgateway/v2 (Go): upgrade to 2.1.0 or later

  ```sh
  go get github.com/kgateway-dev/kgateway/v2@v2.1.0
  ```


## Affected products

- github.com/kgateway-dev/kgateway (Go) SEMVER:introduced=0
- github.com/kgateway-dev/kgateway/v2 (Go) SEMVER:introduced=0,fixed=2.0.5,introduced=2.1.0-agw-cel-rbac,fixed=2.1.0

## Related threats

- [GO-2025-4094 - kgateway is missing xDS authorization in github.com/kgateway-dev/kgateway](https://junglewise.ai/threats/cve-2025-64323-kgateway-is-missing-xds-authorization)
- [Kgateway transformation policy template can emit files from the container](https://junglewise.ai/threats/kgateway-transformation-policy-template-can-emit-files-from-the-d73768b7)
