7.8

CVE-2026-24905: inspektor-gadget Command Injection

CVSS: 7.8v3.1HighModified
AliasesGHSA-79qw-g77v-2vfhGO-2026-5211
Published 29-01-2026Last modified 30-04-2026

Vulnerability summary

CVE-2026-24905 is a high (CVSS 7.8) Command Injection vulnerability in inspektor-gadget. EPSS estimates a 1.42% chance of exploitation in the next 30 days, higher than 72.5% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
41/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
1.42%
0%100%
Low · +0.09 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 29-01-2026
    PublishedVulnerability first disclosed.
  2. 30-04-2026
    Last modifiedVulnerability information updated.

Description

Inspektor Gadget is a set of tools and framework for data collection and system inspection on Kubernetes clusters and Linux hosts using eBPF. The `ig` binary provides a subcommand for image building, used to generate custom gadget OCI images. A part of this functionality is implemented in the file `inspektor-gadget/cmd/common/image/build.go`. The `Makefile.build` file is the Makefile template employed during the building process. This file includes user-controlled data in an unsafe fashion, specifically some parameters are embedded without an adequate escaping in the commands inside the Makefile. Prior to version 0.48.1, this implementation is vulnerable to command injection: an attacker able to control values in the `buildOptions` structure would be able to execute arbitrary commands during the building process. An attacker able to exploit this vulnerability would be able to execute arbitrary command on the Linux host where the `ig` command is launched, if images are built with the `--local` flag or on the build container invoked by `ig`, if the `--local` flag is not provided. The `buildOptions` structure is extracted from the YAML gadget manifest passed to the `ig image build` command. Therefore, the attacker would need a way to control either the full `build.yml` file passed to the `ig image build` command, or one of its options. Typically, this could happen in a CI/CD scenario that builds untrusted gadgets to verify correctness. Version 0.51.1 fixes the issue.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.42%

Chance of exploitation in the next 30 days

Percentile

73%

Versus all other CVEs

30-day change

+0.09 pp

From 1.33% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.42%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Inspektor Gadget

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Github.com/inspektor-gadget1 product
  • inspektor-gadget< 0.51.1
Inspektor-gadget1 product
Linuxfoundation1 product

3 vendors · 3 products

References

5 links