CVE-2026-50125 Details
Description
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.
A denial-of-service vulnerability has been identified in the MKP (Model Context Protocol) server for Kubernetes, prior to version 0.4.1. The issue arises because the server's default HTTP endpoint exposes an unauthenticated 'get_resource' tool that allows remote attackers to manipulate 'limitBytes' and 'tailLines' parameters for pod logs. These parameters are parsed as unbounded int64 values and, when processed, can lead to excessive memory consumption by the server. This vulnerability can be exploited by sending a single crafted request that causes the MKP server to buffer a large volume of log data into memory, ultimately exhausting the server's resources and causing it to terminate.
Users can update to MKP version 0.4.1 or later, where this vulnerability has been fixed. The updated version includes proper validation and hard limits on the 'limitBytes' and 'tailLines' parameters, preventing the exploitation of this denial-of-service condition.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 17, 2026CISA-ADP
Assessed Sep 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/StacklokLabs/mkp/security/advisories/GHSA-qw5r-ppcg-f8rj | CISA-ADP | AdvisoryExploitRemedyTechnical AnalysisVendor |
| https://github.com/StacklokLabs/mkp/commit/37bf6bac862aa3b1c71b8aa1b8364eae7818962d | [email protected] | Source CodeVendor |
| https://github.com/StacklokLabs/mkp/security/advisories/GHSA-qw5r-ppcg-f8rj | [email protected] | AdvisoryExploitRemedyTechnical AnalysisVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| StacklokLabs MKP | < 0.4.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 24, 2026 | CVE Modified | CISA-ADP |
| Sep 17, 2026 | New CVE Received | [email protected] |
Volerion