{"answers":{"affected":"6 open source packages ship an affected version, including github.com/kgateway-dev/kgateway/v2 and github.com/kgateway-dev/kgateway.","exploited":"There is no known exploitation of GHSA-5pmx-7r6r-wfqq in the wild and no public exploit code.","fix":"Upgrade github.com/kgateway-dev/kgateway/v2 to a fixed version for your release line: 2.0.5 or 2.1.0.","what":"GHSA-5pmx-7r6r-wfqq is a path traversal vulnerability in github.com/kgateway-dev/kgateway, published on 4 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-5pmx-7r6r-wfqq and fix it if it is affected.\n\nWhat it is: GHSA-5pmx-7r6r-wfqq is a path traversal vulnerability in github.com/kgateway-dev/kgateway, published on 4 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-5pmx-7r6r-wfqq in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/kgateway-dev/kgateway/v2 (Go): affected all versions; fixed in 2.0.5, 2.1.0\n- github.com/kgateway-dev/kgateway/v2 (Go): affected all versions; fixed in 2.0.5\n- github.com/kgateway-dev/kgateway/v2 (Go): affected all versions; fixed in 2.0.5\n- github.com/kgateway-dev/kgateway/v2 (Go): affected from 2.1.0-agw-cel-rbac; fixed in 2.1.0\n- github.com/kgateway-dev/kgateway/v2 (Go): affected from 2.1.0-agw-cel-rbac; fixed in 2.1.0\n- github.com/kgateway-dev/kgateway (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-5pmx-7r6r-wfqq/ (Markdown: https://insights.sbomify.com/GHSA-5pmx-7r6r-wfqq/index.md)","id":"GHSA-5pmx-7r6r-wfqq","markdown":"https://insights.sbomify.com/GHSA-5pmx-7r6r-wfqq/index.md","name":"GHSA-5pmx-7r6r-wfqq","record":{"aliases":["GO-2025-4095"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Kgateway API Gateway","requires_auth":"low_privilege","summary":"Users with TrafficPolicy creation permissions can read arbitrary files from the dataplane container filesystem via crafted transformation templates.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Summary\n\nThe transformation policy template feature in Kgateway versions through 2.0.4 allows users with TrafficPolicy creation permissions to craft transformations that read and expose arbitrary files from the dataplane container filesystem.\n\n## Description\n\n### Impact\n\nUsers with permissions to create a TrafficPolicy can create a transformation that returns files from within the dataplane container. While no secrets are mounted to the container by default, users who mount custom volumes to the dataplane should be aware of potential data exposure through this vulnerability.\n\nThis could allow unauthorized access to:\n- Configuration files within the container\n- Custom mounted volumes and their contents\n- Any files accessible to the dataplane container process\n\nNote: Updated availability score to high, as under some configurations this can prevent xDS updates.\n\n### Patches\n\nUpgrade to version 2.0.5 or 2.1.0. These versions include an updated transformation filter in envoy-gloo that prevents file access through transformation templates.\n\n### Workarounds\n\nIf you are not using transformations, you can disallow TrafficPolicy creation or restrict transformation usage using a ValidatingAdmissionPolicy to prevent exploitation while preparing to upgrade.\n\n## References\n\n- Fix in 2.1.0: https://github.com/kgateway-dev/kgateway/pull/12528 (envoy-gloo v1.35.2-patch4)\n- Backport to 2.0.5: Included in https://github.com/kgateway-dev/kgateway/pull/12535 (envoy-gloo v1.34.6-patch3)\n- Envoy-gloo releases: https://github.com/solo-io/envoy-gloo/releases/tag/v1.35.2-patch4\n- Envoy-gloo releases: https://github.com/solo-io/envoy-gloo/releases/tag/v1.34.6-patch3\n\n## Credits\n\nKindly reported by @rikatz\n\n## For More Information\n\nIf you have any questions or comments about this advisory, please reach out in slack https://cloud-native.slack.com/archives/C080D3PJMS4","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Kgateway transformation policy template can emit files from the container","id":"GHSA-5pmx-7r6r-wfqq","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":6,"n_references":null,"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/kgateway-dev/kgateway","purl":"pkg:golang/github.com/kgateway-dev/kgateway","source":"GO-2025-4095"},{"ecosystem":"Go","fixed":["2.0.5","2.1.0"],"introduced":["0","2.1.0-agw-cel-rbac"],"last_affected":[],"package":"github.com/kgateway-dev/kgateway/v2","purl":"pkg:golang/github.com/kgateway-dev/kgateway/v2","source":"GO-2025-4095"},{"ecosystem":"Go","fixed":["2.0.5"],"introduced":["0"],"last_affected":[],"package":"github.com/kgateway-dev/kgateway/v2","purl":null,"source":"GHSA-5pmx-7r6r-wfqq"},{"ecosystem":"Go","fixed":["2.0.5"],"introduced":["0"],"last_affected":[],"package":"github.com/kgateway-dev/kgateway/v2","purl":"pkg:golang/github.com/kgateway-dev/kgateway/v2","source":"GHSA-5pmx-7r6r-wfqq"},{"ecosystem":"Go","fixed":["2.1.0"],"introduced":["2.1.0-agw-cel-rbac"],"last_affected":[],"package":"github.com/kgateway-dev/kgateway/v2","purl":null,"source":"GHSA-5pmx-7r6r-wfqq"},{"ecosystem":"Go","fixed":["2.1.0"],"introduced":["2.1.0-agw-cel-rbac"],"last_affected":[],"package":"github.com/kgateway-dev/kgateway/v2","purl":"pkg:golang/github.com/kgateway-dev/kgateway/v2","source":"GHSA-5pmx-7r6r-wfqq"}],"products":null,"published":"2025-11-04","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Users with TrafficPolicy creation permissions can read arbitrary files from the dataplane container filesystem via crafted transformation templates.","url":"https://insights.sbomify.com/GHSA-5pmx-7r6r-wfqq/"}