Intel

AIKIDO-2026-10146

github.com/inspektor-gadget/inspektor-gadget is vulnerable to Command Injection

Command InjectionCVE-2026-24905 Published Feb 9, 2026

66

Medium Risk

This Affects:

GOgithub.com/inspektor-gadget/inspektor-gadget
0.1.0 - 0.48.1
Fixed in 0.49.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package allow command injection during image build because user-controlled fields from the gadget manifest are interpolated into Makefile.build targets without proper escaping; specifically, parameters like CFLAGS, source paths, and other build options are passed directly to make. An attacker who can influence build.yml (e.g., in CI/CD pipelines building untrusted gadgets) can inject shell metacharacters to execute arbitrary commands during the build, resulting in code execution on the local host when --local is used, or inside the build container otherwise.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/inspektor-gadget/inspektor-gadget is vulnerable to Command Injection in versions 0.1.0 - 0.48.1.

How to fix this

Upgrade the github.com/inspektor-gadget/inspektor-gadget library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform