Read the docs
TI-2026-36896 Aliases CVE-2026-50125GHSA-qw5r-ppcg-f8rj

MKP: Unbounded Pod Log Read via Attacker-Controlled `limitBytes`/`tailLines` Causes Memory Exhaustion

Priority HIGH 72CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.

Summary

MKP is a Model Context Protocol server for Kubernetes. Prior to 0.4.1, cmd/server/main.go exposes the default HTTP endpoint and pkg/mcp/server.go registers the unauthenticated get_resource tool, which accepts attacker-controlled limitBytes and tailLines values for the pods logs subresource. buildPodLogOpts() in pkg/k8s/subresource.go parses those values as unbounded int64 parameters, and defaultGetPodLogs() copies the returned Kubernetes log stream through io.Copy into an in-memory bytes.Buffer without an application-side cap. A remote attacker who can reach the default port 8080 MCP endpoint and select a pod with sufficiently large accumulated logs can send one tools/call request that causes large allocations and additional response copies, while the request-frequency limiter does not constrain per-request volume. This can exhaust process memory, terminate the MKP server, and deny the MCP service; observed testing showed more than one GiB of RSS growth while handling a 128 MiB requested stream. This issue is fixed in version 0.4.1.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00488 42nd percentileScored 2026-11-07
Fix Fixed mkp (StacklokLabs): 0.4.1github.com/StacklokLabs/mkp (Go): 0.4.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
StacklokLabsmkpbefore 0.4.10.4.1Patch availableCNA
—github.com/StacklokLabs/mkp (Go)before 0.4.10.4.1Patch availableGHSA-qw5r-ppcg-f8rj
  • mkp VendorStacklokLabs Affected before 0.4.1 Fixed in 0.4.1 Patch available CNA
  • github.com/StacklokLabs/mkp (Go) Vendor— Affected before 0.4.1 Fixed in 0.4.1 Patch available GHSA-qw5r-ppcg-f8rj

Remediation

  • Fix · CNA mkp (StacklokLabs) Fixed in 0.4.1
  • Fix · GHSA-qw5r-ppcg-f8rj github.com/StacklokLabs/mkp (Go) Fixed in 0.4.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-50125
  2. 2026-10-03 Alias added: GHSA-qw5r-ppcg-f8rj

References

Sources