github.com/inspektor-gadget/inspektor-gadget is vulnerable to Command Injection
66
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
github.com/inspektor-gadget/inspektor-gadget is vulnerable to Command Injection in versions 0.1.0 - 0.48.1.
Upgrade the github.com/inspektor-gadget/inspektor-gadget library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant