Home / inspektor-gadget / inspektor-gadget / CVE-2026-24905
CVE-2026-24905: is it exploited, and which versions of inspektor-gadget are affected and fixed?
CVE-2026-24905 is a command injection vulnerability in inspektor-gadget. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: github.com/inspektor-gadget/inspektor-gadget before 0.51.1 (GitHub advisory GHSA-79qw-g77v-2vfh). Fixed in 0.51.1 (GitHub advisory GHSA-79qw-g77v-2vfh). Severity: Medium (6.6, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-24905?
Inspektor Gadget has a Command Injection vulnerability in Makefile.build
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.
From the CVE record by GitHub_M, last updated April 30, 2026, 19:21 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| inspektor-gadget | inspektor-gadget | < 0.51.1 |
As the CVE record by GitHub_M states it, last updated April 30, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/inspektor-gadget/inspektor-gadget | < 0.51.1 | 0.51.1 | GHSA-79qw-g77v-2vfh |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 30, 2026. Summary: Inspektor Gadget: Command Injection via malicious buildOptions manipulation.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| linuxfoundation | inspektor gadget | before 0.48.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 10:23 UTC.
How severe is CVE-2026-24905?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.6 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P | GitHub_M |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-24905 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, January 30, 2026)
- EPSS
- 1.39% probability of exploitation activity in the next 30 days, percentile 73.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://github.com/inspektor-gadget/inspektor-gadget/security/advisories/GHSA-79qw-g77v-2vfh x_refsource_CONFIRM
- https://github.com/inspektor-gadget/inspektor-gadget/commit/7c83ad84ff7a68565655253e2cf1c5d2da695c1a x_refsource_MISC
- https://github.com/inspektor-gadget/inspektor-gadget/commit/d9bf2fe4a180dad33ce57ca793ff4799ee7b8320 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 27, 2026
- Published
- January 29, 2026, 21:29 UTC
- CVE record updated
- April 30, 2026, 19:21 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 10:23 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect inspektor-gadget?
- Sep 15, 2026CVE-2026-53941 inspektor-gadget: denial of service (resources allocated without limits)
- Sep 15, 2026CVE-2026-44778 inspektor-gadget: improper input validation
- Mar 12, 2026CVE-2026-31890 inspektor-gadget: omission of Security-relevant Information
- Feb 12, 2026CVE-2026-25996 inspektor-gadget: improper Neutralization of Escape, Meta, or Control Sequences
Questions about CVE-2026-24905
Is CVE-2026-24905 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 1.39% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of inspektor-gadget are affected by CVE-2026-24905?
github.com/inspektor-gadget/inspektor-gadget before 0.51.1, per the GitHub advisory GHSA-79qw-g77v-2vfh. The tables above give every range the sources list.
Which version fixes CVE-2026-24905?
0.51.1, per the GitHub advisory GHSA-79qw-g77v-2vfh. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-24905?
Medium (6.6, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-24905?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.