Skip to main content

Inspektor Gadget EUVDEUVD-2026-78938

| CVE-2026-44778 LOW
Improper Input Validation (CWE-20)
2026-06-22 https://github.com/inspektor-gadget/inspektor-gadget GHSA-7cfq-5mhv-jrp9
2.9
CVSS 4.0 · Vendor: https://github.com/inspektor-gadget/inspektor-gadget
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain unprivileged execution inside target container
  2. Delivery
    Identify library path targeted by active USDT gadget
  3. Exploit
    Place crafted ELF with malicious DescSize/NameSize at targeted path
  4. Execution
    IG calls getUsdtInfo() on crafted ELF during probe attachment
  5. Persist
    Out-of-bounds slice access panics IG process or 4 GiB allocation triggers OOM kill
  6. Impact
    Inspektor Gadget host monitoring process crashes

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires two specific non-default conditions to be simultaneously true: (1) a custom USDT gadget containing a SEC("usdt/...") eBPF section must be actively deployed and running - no gadget shipped by Inspektor Gadget uses USDT, making the overwhelming majority of deployments completely unexposed; and (2) the attacker must have unprivileged code execution inside a container whose library paths are targeted by the running USDT gadget, enabling placement of a crafted ELF file at the resolved library path. Exploitation is strictly limited to DoS (panic or OOM kill of the IG host process); it does not enable code execution, privilege escalation, or data exfiltration. The OOM vector is amplified in Kubernetes deployments where the IG pod operates under cgroup memory limits. Environments running only default Inspektor Gadget gadgets cannot be exploited regardless of attacker container access.

Impact

No NVD CVSS vector was published for this CVE; the vendor self-rates severity as Low. EPSS data is unavailable and the vulnerability is not listed in CISA KEV, consistent with the highly conditional exploitation path. The tags in the source data include 'Privilege Escalation' and 'RCE', which are NOT supported by the advisory - confirmed impact is DoS only (process crash or OOM kill); those tags should be treated as erroneous metadata. Real-world risk is low: the attack requires two conditions that rarely co-exist - an active custom USDT gadget (none shipped by the project) and an attacker with container execution capability positioned to place a crafted ELF at a targeted library path. In environments running only default Inspektor Gadget gadgets, this vulnerability is entirely unexploitable. The highest-risk scenario is a Kubernetes security team that has developed internal USDT gadgets for tracing proprietary applications; in that niche, a compromised workload container could disrupt the monitoring plane.

Exploit ScenarioDerived

An attacker with unprivileged code execution inside a Kubernetes container creates a crafted ELF binary (e.g., a fake shared library named to match a target like libfoo.so.1) and places it at the path that the running USDT gadget will resolve via the container's ld.so cache. When the Inspektor Gadget process attaches its USDT probes to the container's binary, it calls getUsdtInfo() on the malicious ELF, which either immediately panics due to out-of-bounds slice access (DescSize=1 vector) or triggers an OOM kill by allocating ~4 GiB (DescSize=0xFFFFFFFF vector), crashing the privileged IG monitoring process on the host. No public exploit code has been identified.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

Denial of service in Inspektor Gadget's USDT note parser (pkg/uprobetracer/usdt.go) allows an unprivileged container process to crash or OOM-kill the privileged IG host process by placing a crafted ELF binary at a path targeted by a custom USDT gadget. Two distinct attack vectors exist: a panic from out-of-bounds slice access when DescSize is artificially small, and unbounded memory allocation (~4 GiB) when NameSize or DescSize is set to 0xFFFFFFFF. No public exploit identified at time of analysis; critically, no gadget shipped by the Inspektor Gadget project uses USDT probes, so only deployments running operator-developed custom USDT gadgets are exposed.

RemediationAI

Vendor-released patch: v0.53.1. Upgrade Inspektor Gadget to v0.53.1 or later; the fix is delivered via PR #5547 (https://github.com/inspektor-gadget/inspektor-gadget/pull/5547) and commit ec69da2e00c39bc43f389f943899e5ff9c7b011a. The patch applies three hardening changes to pkg/uprobetracer/usdt.go: a pre-access bounds check requiring len(desc) >= 3*wordSize before reading address fields; a 1 MiB cap on NameSize and DescSize before allocation; and a defer/recover wrapper around getUsdtInfo() to catch panics from debug/elf on malformed input. The fix also migrates elf.NewFile() calls in pkg/operators/ebpf/extrainfo.go and pkg/symbolizer/table.go to a new safeelf.NewFile() wrapper. If upgrading immediately is not feasible, the most effective compensating control is to cease deploying any gadget containing a SEC("usdt/...") eBPF section - since no shipped IG gadgets use USDT, this is effectively the default posture for most deployments and carries no operational impact for standard use.

Affected VersionsENISA

inspektor-gadget 0.28.0, < 0.53.1

Affected Packages

go github.com/inspektor-gadget/inspektor-gadget fix: 0.53.1
euvd inspektor_gadget_0_28_0 fix: 0.53.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Inspektor Gadget is a Kubernetes-native eBPF observability framework. USDT (User Statically Defined Tracing) probes, defined by SEC("usdt/...") sections in eBPF programs, allow tracing user-space applications at compiled-in static probe points embedded in ELF binaries as .note.stapsdt sections. The vulnerable function getUsdtInfo() in pkg/uprobetracer/usdt.go parses these stapsdt notes using Go's debug/elf package, which is explicitly not hardened against adversarial inputs. CWE-20 (Improper Input Validation) is the root cause: NameSize and DescSize fields from note headers are used directly to allocate memory and construct byte slices without upper bound checks or descriptor length validation. For a 64-bit ELF (wordSize=8), valid stapsdt notes require desc to be at least 24 bytes, but a DescSize=1 produces a 4-byte buffer causing a panic at desc[:8]. The cilium/ebpf library addresses this class of problem with its SafeELFFile wrapper using recover(), which the Inspektor Gadget code did not use prior to the fix. The CPE identifier is pkg:go/github.com_inspektor-gadget_inspektor-gadget.

Know when Kubernetes gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/inspektor-gadget/inspektor-gadget) PRIMARY 2.9 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.6 MEDIUM

Container code execution required (AV:L, PR:L); specific custom USDT gadget prerequisite raises AC:H; crash of privileged host process is a scope change (S:C) with high availability impact (A:H) and no C/I impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H

Primary rating from Vendor (https://github.com/inspektor-gadget/inspektor-gadget).

CVSS VectorVendor: https://github.com/inspektor-gadget/inspektor-gadget

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Sep 15, 2026 - 17:22 NVD
2.9 (LOW)

DescriptionCVE.org

Summary

A malicious container can crash or destabilize the privileged Inspektor Gadget process when a gadget using USDT probes is deployed. The vulnerability is in the USDT note parser (pkg/uprobetracer/usdt.go) which is invoked when a gadget with a SEC("usdt/...") section attaches to a target binary. An unprivileged process can place a crafted ELF binary at the expected library path, triggering one of two attack vectors:

  1. Panic (immediate crash): A stapsdt note with a small DescSize causes an out-of-bounds slice access, panicking the IG process.
  2. Memory exhaustion (OOM kill): A stapsdt note with a very large NameSize or DescSize causes IG to allocate up to ~4 GiB of memory, which can killnthe process if deployed with memory restrictions (e.g., cgroup limits).

Important: The vulnerability is only triggered when running a gadget that uses USDT probes (i.e., contains a SEC("usdt/...") eBPF section). No gadget shipped by the Inspektor Gadget project uses USDT today. Users who deploy their own custom USDT gadgets are affected.

Severity

Low - Denial of Service (process crash or OOM) of a privileged host process, triggered by an unprivileged container. The vulnerable code path is only reached when a gadget using USDT probes is deployed. No such gadget is shipped by the Inspektor Gadget project; only users running custom USDT gadgets are affected.

  • Attack vector: An unprivileged process in a container places a crafted ELF file at a path that a USDT gadget targets (e.g., a library name resolved via the container's ld cache). When the gadget attaches, IG parses the malicious ELF and crashes.
  • Impact: The IG process panics and crashes (vector 1) or is OOM-killed (vector 2). This is a DoS against the monitoring infrastructure, not a code execution or privilege escalation vulnerability.
  • Affected component: pkg/uprobetracer/usdt.go, function getUsdtInfo()
  • Prerequisites: A gadget with a SEC("usdt/...") eBPF section must be running and configured to attach to a library inside the attacker's container.

No shipped gadgets use USDT probes, so this only affects deployments with custom USDT gadgets.

Affected Versions

All versions of Inspektor Gadget that include USDT support in pkg/uprobetracer/usdt.go, starting from v0.28.0 (commit 7ee5e7a90 "pkg/uprobetracer: support USDT trace points").

Root Cause

Vector 1: Out-of-bounds slice access (panic)

In pkg/uprobetracer/usdt.go, the function getUsdtInfo() parses stapsdt notes from an ELF file's .note.stapsdt section. When a matching note is found (name "stapsdt\0" and type 3), it reads three address fields from the note descriptor:

go
// usdt.go lines 137-139
elfLocation := elfReader.ByteOrder.Uint64(desc[:wordSize])
elfBase := elfReader.ByteOrder.Uint64(desc[wordSize : 2*wordSize])
elfSemaphore := elfReader.ByteOrder.Uint64(desc[2*wordSize : 3*wordSize])

For a 64-bit ELF, wordSize = 8, so this requires desc to be at least 24 bytes. However, desc is allocated based on the note's DescSize field from the ELF file:

go
desc := make([]byte, alignUp(uint64(header.DescSize), 4))

A crafted ELF with DescSize = 1 produces a 4-byte desc buffer. The expression desc[:8] then panics with:

panic: runtime error: slice bounds out of range [:8] with capacity 4

Vector 2: Unbounded memory allocation (OOM)

The NameSize and DescSize fields from the note header are used directly to allocate memory without any upper bound:

go
name := make([]byte, alignUp(uint64(header.NameSize), 4))
desc := make([]byte, alignUp(uint64(header.DescSize), 4))

A crafted ELF with NameSize = 0xFFFFFFFF would attempt to allocate ~4 GiB of memory. Under cgroup memory limits (common in Kubernetes deployments), this triggers an OOM kill of the IG process.

Vector 3: Missing panic recovery for debug/elf

Go's debug/elf package is not hardened against adversarial inputs and may panic on malformed ELF headers. The cilium/ebpf library addresses this with its SafeELFFile wrapper that uses recover(), but getUsdtInfo() calls elf.NewFile() directly without any panic recovery.

Fix

The fix (3 changes in pkg/uprobetracer/usdt.go):

  1. Bounds check on descriptor size: Validate len(desc) >= 3*wordSize before accessing the address fields. Reject malformed notes with an error instead of panicking.
  2. Cap allocation sizes: Limit NameSize and DescSize to a reasonable maximum (1 MiB) before allocating memory, preventing DoS via memory exhaustion. There is no standard upper bound for ELF note fields; 1 MiB is a generous arbitrary cap - legitimate USDT notes are typically under 1 KB.
  3. Panic recovery: Wrap getUsdtInfo() with defer/recover to catch any panics from debug/elf on malformed input, converting them to errors.

Related

  • Go debug/elf known issues: https://github.com/golang/go/issues?q=is%3Aissue+is%3Aopen+debug%2Felf+in%3Atitle
  • cilium/ebpf SafeELFFile wrapper: https://github.com/cilium/ebpf/blob/main/internal/safeelf.go - uses recover() around all debug/elf operations for exactly this reason.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Low
Kubernetes-native eBPF observability tool, niche specialized deployment
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Low

Priority Score

14
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy