Arbitrary Command Injection Affecting github.com/inspektor-gadget/inspektor-gadget/cmd/common/image package, versions <0.48.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.3% (68th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMINSPEKTORGADGETINSPEKTORGADGETCMDCOMMONIMAGE-15166610
  • published1 Feb 2026
  • disclosed29 Jan 2026
  • creditndaprela, suidpit

Introduced: 29 Jan 2026

CVE-2026-24905  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade github.com/inspektor-gadget/inspektor-gadget/cmd/common/image to version 0.48.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection via the buildCmd function. An attacker can execute arbitrary commands by supplying crafted values in the buildOptions structure, which are embedded unsafely in Makefile commands.

Note: This is only exploitable if the attacker can control the build.yml file or its options passed to the ig image build command, such as in CI/CD pipelines that build untrusted gadgets.

References

CVSS Base Scores

version 4.0
version 3.1