7.8

CVE-2026-24905: Inspektor Gadget has a Command Injection vulnerability in Makefile.build

Modified
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) vulnerability in inspektor-gadget. EPSS estimates a 1.39% chance of exploitation in the next 30 days, higher than 73.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.6, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
1.39%
0%100%
Low · -0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.39%

Chance of exploitation in the next 30 days

Percentile

73%

Versus all other CVEs

30-day change

Decrease -0.01 pp

From 1.40% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Inspektor Gadget

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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

3 vendors · 3 products

References

5 links