Advisory

GHSA-rp7v-4384-hfrp

Also known as: GO-2026-5631

Summary

k8sGPT has Prompt Injection through its k8sGPT-Operator

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-24 16:37 UTC
Modified
2026-06-25 23:11 UTC

Affected packages and fixes

github.com/k8sgpt-ai/k8sgpt

Go · All systems

Affected

  • introduced 0, fixed 0.4.32 (semver)

Fixed versions

0.4.32

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences