Skip to content

Kunai

Kunai Mount Namespace Cache TOCTOU Allows Incorrect Event Resolution Against Host Files

CVE-2026-129919Published 16 Nov 2026, 13:49 UTC

Real-world risk

0.3/ 10Low

Routine

If the vulnerable configuration applies to you: 0.6

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.0

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from CIRCL)

Kunai, a security monitoring tool, contains a time-of-check to time-of-use (TOCTOU) race condition in its mount namespace (mnt ns) caching logic. When resolving a security event that references a specific process PID and an expected mount namespace, the Switcher::new function read /proc/<pid>/ns/mnt to determine the target namespace and cached the result under the expected namespace key without verifying that the resolved namespace actually matched the expected one. An attacker with local access could exploit this by either (1) arranging for the referenced PID to be reused by a process in a different namespace (e.g., the host namespace) before Kunai resolves it, or (2) calling unshare or setns on the target process after the event is generated but before the namespace is resolved. In either case, the wrong namespace (potentially the host's own namespace) would be cached under the container's namespace key. The security impact is that subsequent container security events would be resolved against host filesystem paths rather than container paths. This undermines the integrity of the security monitoring data: container activity could be misattributed to the host, host activity could be misattributed to a container, and file-path-based detections or alerts would reference incorrect paths. An attacker could potentially use this to obscure malicious activity within a container by making it appear as benign host activity, or to generate misleading security alerts. The vulnerability requires local access to the system and a specific timing window between event generation and namespace resolution. No remote attack vector or user interaction is required.

Am I affected?

ProductAffected versions (from the sources)Fixed in
KunaiNiche<= 0.6.2—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededLowA real low-privileged accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.1% chance of exploitation in 30 days (percentile 1), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together0.101
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.1013 × threat 0.850.258
  4. Rounded to one decimal between 0.1 and 100.3

How the score works

Exploitation and evidence timeline

  1. 16 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.3 (cvss fallback)

Weakness

CWE-20, CWE-367

References

Get alerts for Kunai

Free email or text alerts when a vulnerability in Kunai reaches risk 8 or higher. Nothing else.