# CVE-2026-24905: Inspektor Gadget: Command Injection via malicious buildOptions manipulation

Source: https://junglewise.ai/threats/cve-2026-24905-inspektor-gadget-command-injection-via-malicious-buildoptions  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-25  
License: CC BY 4.0 with a link back

CVE-2026-24905 · Severity: medium · CVSS 4 · Published 2026-06-25

Inspektor Gadget: Command Injection via malicious buildOptions manipulation in github.com/inspektor-gadget/inspektor-gadget

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

## Quick answers

**Is CVE-2026-24905 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-24905 being exploited in the wild.

**How severe is CVE-2026-24905?** Medium severity, with a CVSS score of 4, published 25 June 2026.

**Which products and versions are affected?** github.com/inspektor-gadget/inspektor-gadget (Go) SEMVER:introduced=0,fixed=0.51.1.

**Is there a fix for CVE-2026-24905?** Yes. github.com/inspektor-gadget/inspektor-gadget (Go): upgrade to 0.51.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-24905?** Check whether you run github.com/inspektor-gadget/inspektor-gadget (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/inspektor-gadget/inspektor-gadget (Go): upgrade to 0.51.1 or later

  ```sh
  go get github.com/inspektor-gadget/inspektor-gadget@v0.51.1
  ```


## Affected products

- github.com/inspektor-gadget/inspektor-gadget (Go) SEMVER:introduced=0,fixed=0.51.1

## Identifiers

- CVE-2026-24905
- GHSA-79qw-g77v-2vfh
- GO-2026-5211

## Related threats

- [Inspektor Gadget ldcache parser denial of service](https://junglewise.ai/threats/cve-2026-53941-inspektor-gadget-ldcache-parser-denial-of-service)
- [Inspektor Gadget Denial of Service in USDT note parser](https://junglewise.ai/threats/cve-2026-44778-inspektor-gadget-denial-of-service-in-usdt-note-parser)
- [Inspektor Gadget uses unsanitized ANSI Escape Sequences In `columns` Output Mode](https://junglewise.ai/threats/cve-2026-25996-inspektor-gadget-uses-unsanitized-ansi-escape-sequences-in)
- [GO-2025-3665 - Inspektor Gadget Security Policies Can be Bypassed in github.com/inspektor-gadget/inspektor-gadget](https://junglewise.ai/threats/go-2025-3665-inspektor-gadget-security-policies-can-be-bypassed-in-4c344c2b)
- [Inspektor Gadget Security Policies Can be Bypassed](https://junglewise.ai/threats/inspektor-gadget-security-policies-can-be-bypassed-dbe23dd6)
