# Kgateway transformation policy template can emit files from the container

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

Severity: low · CVSS 3.1 · Published 2025-11-04

Kgateway transformation policy template can emit files from the container

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?** Low severity, with a CVSS score of 3.1, published 4 November 2025.

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

**Is there a fix for This vulnerability?** Yes. github.com/kgateway-dev/kgateway/v2 (Go): upgrade to 2.0.5 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/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.0.5 or later

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


## Affected products

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

## Related threats

- [GO-2025-4095 - Kgateway transformation policy template can emit files from the container in github.com/kgateway-dev/kgateway](https://junglewise.ai/threats/go-2025-4095-kgateway-transformation-policy-template-can-emit-files-c805191d)
- [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)
