Skip to main content

Inspektor Gadget EUVDEUVD-2026-78939

| CVE-2026-53941 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-08-19 https://github.com/inspektor-gadget/inspektor-gadget GHSA-vjhx-2cqw-3q6q
6.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
    Deploy crafted container image with malicious /etc/ld.so.cache
  2. Delivery
    Container start triggers IG fanotify pause on host
  3. Exploit
    IG parser enters ~700K-iteration O(n²) loop on crafted file
  4. Execution
    IG daemon burns CPU for ~53 seconds holding fanotify lock
  5. Persist
    Docker serializes all container starts behind the lock
  6. Impact
    Host-wide container runtime denied for all other workloads

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that at least one uprobe-based Inspektor Gadget gadget (trace_malloc, trace_ssl, trace_grpc, trace_open, or equivalent) is actively running on the target host at the moment the malicious container starts. The crafted /etc/ld.so.cache can be embedded in the container image at build time, mounted via a host-path or configmap volume, or written by the container process at runtime before IG attaches the uprobe gadget. No Linux capabilities, no elevated privileges, and no special container security context are required - any unprivileged container user can supply the crafted file. The full host-wide container startup DoS (holding the fanotify pause and blocking Docker) only applies to new container starts; containers with crafted caches that are already running when a gadget is newly attached still cause the ~53-second CPU burn in the IG daemon but do not hold the fanotify pause. Hosts without Inspektor Gadget installed, or hosts where only non-uprobe gadgets (e.g., pure eBPF tracepoint gadgets) are active, are entirely unaffected.

Impact

No official CVSS score has been published for this CVE; all metric assessments here are independently derived. EPSS data is consequently unavailable, and the vulnerability does not appear in CISA KEV - no confirmed active exploitation is known at time of analysis. Despite the absence of a formal score, real-world risk is significant in multi-tenant or shared Kubernetes environments where untrusted container images may be deployed to nodes running uprobe-based IG gadgets. The absence of any privilege requirement within the container, combined with the host-wide blast radius (Docker serialization), elevates this well beyond a single-workload DoS. The advisory provides sufficient technical detail - file size, entry count mechanics, and Go code snippets - that exploitation requires no specialized knowledge, lowering the practical barrier. Risk is zero in environments where IG is not deployed or where only non-uprobe gadgets are active. The scope change (single unprivileged container → entire host container runtime) is the defining risk multiplier and must be weighted heavily against the niche deployment footprint of IG itself.

Exploit ScenarioDerived

An adversary with the ability to deploy containers to a Kubernetes node running an active uprobe-based Inspektor Gadget gadget crafts a container image containing a 16MB /etc/ld.so.cache with no null terminators and a maximally crafted EntryCount field. When the container starts, IG's fanotify hook pauses the startup, the parser enters approximately 700,000 loop iterations each executing O(n²) string concatenation, and the IG daemon burns CPU for roughly 53 seconds. During this window Docker cannot start any other container on that host. By deploying multiple such containers in parallel, the adversary can chain the pauses and indefinitely deny container startup to all legitimate workloads on the node.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 19, 2026

Uprobe-based gadget attachment in Inspektor Gadget (versions >= 0.27.0, < 0.53.1) can be weaponized by any unprivileged container to cause approximately 53 seconds of CPU burn in the IG daemon by supplying a crafted /etc/ld.so.cache file - no container capabilities required. Because IG uses fanotify hooks to pause container startup until uprobe attachment completes, and Docker serializes container starts behind that pause, a single crafted container effectively blocks all other containers on the host from launching for the duration of processing. The attack is amplifiable by starting multiple crafted containers simultaneously, and no public exploit has been identified at time of analysis.

RemediationAI

Upgrade Inspektor Gadget to v0.53.1, which is confirmed as the patched release per the upstream advisory (https://github.com/inspektor-gadget/inspektor-gadget/releases/tag/v0.53.1 and GHSA-vjhx-2cqw-3q6q). If immediate upgrade is not feasible, the most effective compensating control is to stop all uprobe-based gadgets (trace_malloc, trace_ssl, trace_grpc, trace_open, and equivalents) - without an active uprobe gadget, IG never invokes the vulnerable ld.so.cache parser and the host is not exposed; the trade-off is loss of uprobe-level observability. A secondary control is to restrict which container images or namespaces may run on nodes where IG uprobe gadgets are active, using Kubernetes admission controllers such as OPA/Gatekeeper or Kyverno to permit only trusted, verified images; note this does not eliminate risk for containers that overwrite /etc/ld.so.cache at runtime before gadget attachment. Network-layer controls are not applicable since the attack vector is local container execution. No vendor-released patch other than v0.53.1 has been identified.

Affected VersionsENISA

inspektor-gadget 0.27.0, < 0.53.1

Affected Packages

go github.com/inspektor-gadget/inspektor-gadget fix: 0.53.1
euvd inspektor_gadget_0_27_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 and container observability framework that attaches eBPF-based gadgets to running containers. When uprobe-based gadgets (trace_malloc, trace_ssl, trace_grpc, trace_open, etc.) are active, IG resolves shared library paths by parsing the container's /etc/ld.so.cache via pkg/uprobetracer/ldcache_parser.go - a file that is entirely under the container's control. The root cause class is CWE-400 (Uncontrolled Resource Consumption), arising from three compounding parser defects in the Go implementation. First, readStringFromBytes in bytes.go:36-44 performs byte-by-byte string concatenation using res += string(data[i]), which is O(n²) because Go strings are immutable and each concatenation allocates a new backing array. Second, the EntryCount field from the untrusted file is used to bound the main parsing loop without capping it against a safe maximum; while per-entry bounds checks prevent out-of-bounds memory reads, the loop still iterates up to approximately 700,000 times (bounded by file size divided by entry size), invoking the quadratic function on each iteration. Third, a uint32 integer overflow in the cache1Len computation in ldcache_parser.go:174 allows a crafted EntryCount to wrap around and produce a small value, causing format misdetection that may route input through an additional vulnerable path. The critical amplifier is the fanotify-based container pause mechanism in pkg/container-hook: IG holds the fanotify pause open until uprobe attachment completes, and because Docker serializes container starts, the entire host container runtime is stalled for the duration of the malicious parse.

Know when Docker 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 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Local vector since container execution on the host is required; PR:N because no privileges are needed within the container; S:C because impact crosses to the host Docker runtime; A:H only, no C or I impact.

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

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
None
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 - 18:37 NVD
6.9 (MEDIUM)

DescriptionCVE.org

Summary

An unprivileged container can block all other containers from starting on the same host by placing a crafted /etc/ld.so.cache file in its filesystem. When Inspektor Gadget attaches any uprobe-based gadget, it parses this file in the container startup path. A malicious cache causes ~53 seconds of CPU burn, during which Docker cannot start any other container. No special capabilities are required.

Severity

To be assessed - Availability impact, no confidentiality or integrity impact.

Affected Versions

All versions of Inspektor Gadget that support uprobe-based gadgets (trace_malloc, trace_open, trace_ssl, trace_grpc, etc.).

Description

When Inspektor Gadget attaches uprobe-based gadgets to containers, it resolves library paths by parsing the container's /etc/ld.so.cache file (pkg/uprobetracer/ldcache_parser.go). This file is fully controlled by the container.

The parser has three vulnerabilities:

  1. Quadratic string building (pkg/uprobetracer/bytes.go:36-44): The readStringFromBytes function concatenates one byte at a time (res += string(data[i])), which is O(n²) in Go due to string immutability. With a 16MB cache file containing large regions without null terminators, this causes massive CPU and memory churn.
  2. Insufficient entry count validation (pkg/uprobetracer/ldcache_parser.go:120): The EntryCount field is read directly from the untrusted file. While a per-entry bounds check prevents out-of-bounds access, the loop still iterates up to (fileSize - headerSize) / entrySize ≈ 700,000 times, calling readStringFromBytes on each iteration.
  3. Integer overflow in format detection (pkg/uprobetracer/ldcache_parser.go:174): The cache1Len computation uses uint32 arithmetic (ldCache1Size + cache1.EntryCount*ldCache1EntrySize). With a crafted EntryCount, this overflows and produces a small value, causing the parser to misidentify the cache format.

Combined, these cause ~53 seconds of CPU burn per container attachment when a crafted 16MB /etc/ld.so.cache is present.

Impact

  • Container runtime DoS: IG uses fanotify hooks (pkg/container-hook) to pause container startup until uprobe attachment completes. While IG is blocked processing the malicious cache, this pause is held, and Docker serializes container starts - meaning no other container can start on the host until IG finishes. This effectively causes a denial of service on the entire container runtime, not just on IG itself.
  • Container startup delay: When any uprobe-based gadget is running (trace_malloc, trace_ssl, etc.), starting a container with a crafted ld.so.cache delays startup by ~1 minute.
  • Monitoring degradation: The IG daemon is blocked processing the malicious cache, potentially missing events from other containers.
  • Amplification: Multiple containers with crafted caches can be started simultaneously to amplify the effect.
  • No special privileges required: Any container can include a crafted /etc/ld.so.cache in its image, mount one via a volume, or overwrite it at runtime before IG starts a uprobe gadget. In this last case, IG inspects all already-running containers when the gadget starts - this still burns CPU but does not block other containers from starting (since the fanotify pause only applies to new container starts).

Root Cause Analysis

In pkg/uprobetracer/ldcache_parser.go, the function readCacheFormat2 is called with the full file content:

go
for i := uint32(0); i < ldCache.EntryCount; i++ {
    entryOffset := ldEntriesOffset + i*ldCache2EntrySize
    if uint32(len(data)) <= entryOffset+ldCache2EntrySize {
        return nil  // bounds check stops iteration
    }
    // ... reads entry ...
    key := readStringFromBytes(data, keyOffset)    // O(n²) per call
    value := readStringFromBytes(data, valueOffset) // O(n²) per call
}

The per-entry bounds check correctly prevents out-of-bounds access, but:

  • The loop iterates ~700K times (limited by file size, not EntryCount)
  • Each readStringFromBytes call uses quadratic string concatenation

In pkg/uprobetracer/bytes.go:

go
func readStringFromBytes(data []byte, startPos uint32) string {
    res := ""
    for i := startPos; i < uint32(len(data)); i++ {
        if data[i] == 0 {
            return res
        }
        res += string(data[i])  // O(n²) - allocates new string each iteration
    }
    return ""
}

Note on Slice Bounds Checks

The code also performs slice accesses without proper bounds checks (e.g., data[:len(cache2Header)] when data may be shorter than 20 bytes, and ldCacheFile[:len(cache1Header)] when the file may be shorter than 11 bytes).

In practice, a malicious container cannot currently trigger a panic from these missing checks. This is because Go's io.ReadAll (used to read the file) always returns slices with cap >= 512 due to its initial buffer allocation (make([]byte, 0, 512) in Go's standard library). In Go, s[:n] only panics when n > cap(s), not when n > len(s). Since both header lengths (11 and 20) are well below 512, the slice expressions succeed - they simply read zero bytes beyond len, which don't match any valid header magic.

However, this relies on an undocumented implementation detail of io.ReadAll which could change in future Go versions. The bounds checks are still necessary for correctness and defense in depth.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
specialized Kubernetes observability tool, niche enterprise deployment base
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Medium

Priority Score

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

Attack Technique

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

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: Moderate

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