CVE-2026-24905
CVE-2026-24905 is a high-severity vulnerability in Linuxfoundation Inspektor Gadget with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-77.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- CVSS v4: 6.6
- EPSS exploit prediction: 1% (73rd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-4954
- Weakness: CWE-77
- Affected product: Linuxfoundation Inspektor Gadget
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-24905?
- 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.
- How severe is CVE-2026-24905?
- CVE-2026-24905 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-24905 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (73rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-24905?
- CVE-2026-24905 affects Linuxfoundation Inspektor Gadget. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-24905?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-24905 have an EU (EUVD) identifier?
- Yes. CVE-2026-24905 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-4954.
- When was CVE-2026-24905 published?
- CVE-2026-24905 was published on 2026-01-29 and last updated on 2026-06-17.
References
- https://github.com/inspektor-gadget/inspektor-gadget/commit/7c83ad84ff7a68565655253e2cf1c5d2da695c1a
- https://github.com/inspektor-gadget/inspektor-gadget/commit/d9bf2fe4a180dad33ce57ca793ff4799ee7b8320
- https://github.com/inspektor-gadget/inspektor-gadget/security/advisories/GHSA-79qw-g77v-2vfh
Affected products (1)
- cpe:2.3:a:linuxfoundation:inspektor_gadget:*:*:*:*:*:*:*:*
More vulnerabilities in Linuxfoundation Inspektor Gadget
- CVE-2026-25996 — Critical (CVSS 9.8): Inspektor Gadget is a set of tools and framework for data collection and system inspection on Kubernetes clusters and…
- CVE-2026-31890 — Medium (CVSS 5.5): Inspektor Gadget is a set of tools and framework for data collection and system inspection on Kubernetes clusters and…
All CVEs affecting Linuxfoundation Inspektor Gadget →
Other CWE-77 (Command Injection) vulnerabilities
- CVE-2026-133493 — Critical (CVSS 10.0): A vulnerability was identified in D-Link DIR-600L 2.17b02. Affected is the function genacgi_main of the file gena.cgi…
- CVE-2026-124580 — Critical (CVSS 10.0): A vulnerability was found in Chengdu Feiyuxing Technology VW2100 and VEC10GP 1.0 B-MB3W202-210825-r11775. This impacts…
- CVE-2026-121932 — Critical (CVSS 10.0): A vulnerability was detected in Linksys E5350 1.0.00.037. This affects the function system of the file…
- CVE-2026-121607 — Critical (CVSS 10.0): A vulnerability was found in Qihoo 360 D603-2, D600-2, D606-6 and D706 up to 6.4.9. This affects the function…
- CVE-2026-120345 — Critical (CVSS 10.0): A vulnerability was found in WAVLINK WN551X3-A M51X3_V251020-WO-182e965. This impacts the function sub_41a430 of the…
- CVE-2026-120344 — Critical (CVSS 10.0): A vulnerability has been found in WAVLINK WN551X3-A M51X3_V251020-WO-182e965. This affects the function system of the…