# GHSA-rp7v-4384-hfrp: k8sGPT has Prompt Injection through its k8sGPT-Operator

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-24T16:37:12.000Z
- Modified: 2026-06-25T23:11:47.271Z
- Also known as: GO-2026-5631
- Weaknesses: CWE-20, CWE-502, CWE-915

## Description

### Summary
In the auto-remediation pipeline, `object_to_execution.go` was deserializing the AI-generated YAML directly into a Deployment object, but there was lack of validation from the original Deployment object.

### Details
This issue was fixed after coordination with Alex Jones.

### PoC
To minimize the impact, the PoC of this vulnerability wasn't released, but was shared with the maintainers.

(As written by GitHub Advisory Database.)

## Affected

- github.com/k8sgpt-ai/k8sgpt (Go): before 0.4.32

## References

- <https://github.com/k8sgpt-ai/k8sgpt/security/advisories/GHSA-rp7v-4384-hfrp> (advisory, web)
- <https://github.com/k8sgpt-ai/k8sgpt> (package)

## Sources

- GitHub Advisory Database: [GHSA-rp7v-4384-hfrp](https://github.com/advisories/GHSA-rp7v-4384-hfrp), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5631](https://pkg.go.dev/vuln/GO-2026-5631), CC-BY-4.0, modified 2026-06-25

---

Page: https://cve.day/GHSA-rp7v-4384-hfrp · Whole record: https://cve.day/GHSA-rp7v-4384-hfrp.json · Rebuilt by cve.day 2026-11-25T22:56:24.960Z
