Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to MaxKB service
-
DeliveryCraft tool definition or LLM prompt with Python introspection code
-
ExploitExecute wrapper process
-
InstallExtract wrapper UUID from bytecode constants
-
C2Write forged result to file descriptor 1
-
ExecuteTerminate wrapper with sys.exit(0)
-
ImpactMaxKB parses spoofed result as legitimate
-
Step 8Attacker achieves result manipulation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | CVSS 3.1 with PR:L (authenticated required), AC:H (high complexity), and I:L (low integrity impact) indicates limited severity under standard metrics. However, the real-world risk is elevated in specific contexts: (1) exploitation is confirmed patched (fix released v2.8.0), suggesting the vendor validated the threat; (2) exploitation requires Python code execution within the sandbox, which implies the attacker must either control a tool definition or inject malicious code into an LLM prompt-both requiring authenticated access and social engineering or prior compromise; (3) the low integrity impact reflects that only tool results are spoofed, not system-wide compromise; (4) AC:H reflects the technical difficulty of extracting UUIDs from bytecode and coordinating the attack timing. This is NOT a critical vulnerability but rather a medium-risk authentication/validation bypass suitable for defense-in-depth upgrades. Organizations running MaxKB with strict input validation on LLM-generated tool calls face lower practical risk than those without such controls. |
| Exploit ScenarioDerived | An authenticated MaxKB user crafts a prompt that instructs the LLM to generate a tool call (e.g., a web search or database query). The user embeds Python code within the tool definition or manipulates the LLM to inject Python bytecode introspection commands. When the wrapper executes the user-controlled code, it extracts the wrapper's UUID from the bytecode constants using sys._getframe().f_code.co_consts, writes a forged result (e.g., 'Tool succeeded: sensitive data exfiltrated') directly to file descriptor 1, and exits with sys.exit(0). MaxKB's validation layer receives only the spoofed output, trusts it as legitimate, and returns the false result to the LLM or user interface, potentially misleading downstream decision-making. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 14, 2026
MaxKB versions 2.7.1 and below allow authenticated users to spoof tool execution results by exploiting Python frame introspection to extract the wrapper's UUID from bytecode, then writing forged output directly to file descriptor 1 to bypass stdout redirection and terminate the wrapper process before legitimate output is generated, causing the service to trust the attacker-controlled response. This integrity bypass requires prior authentication and local/network access but enables attackers to manipulate AI tool results without detection. The vulnerability has been patched in version 2.8.0.
RemediationAI
Upgrade MaxKB to version 2.8.0 or later immediately. The fix has been released and is available via the official GitHub releases page (https://github.com/1Panel-dev/MaxKB/releases/tag/v2.8.0). The patch commit 38c4cfecd065293ede0437f6fa76cf0116591d25 hardens the wrapper's result validation to prevent frame introspection and file descriptor manipulation. If immediate upgrade is not possible, restrict authenticated user access to tool definition creation and monitor LLM prompt injection attempts, though this is not a substitute for patching. Review audit logs for suspicious tool result patterns (e.g., execution results appearing before tool invocation timestamps) as a temporary detection measure.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MaxKB implements a sandbox execution wrapper for AI-generated tool calls that redirects and validates tool outputs. The vulnerability exploits Python's introspection capabilities-specifically the ability to access bytecode constants via the sys._getframe() API-to read the unique identifier embedded in the wrapper's compiled code. By writing directly to file descriptor 1 (the underlying file object before Python's stdout redirection layer), an authenticated attacker bypasses output validation mechanisms. The attacker then calls sys.exit(0) to terminate the wrapper process immediately, preventing the legitimate tool output from being captured and parsed. This leaves only the forged result in the validation pipeline, which MaxKB trusts as genuine. The root cause is insufficient isolation between the wrapper process and untrusted code execution, combined with reliance on stdout redirection rather than cryptographic result attestation. CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) categorizes this as a validation bypass in a data pipeline.
Know when Maxkb 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
AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
MaxKB is an open-source AI assistant for enterprise. In versions 2.7.1 and below, an authenticated user can bypass sandbox result validation and spoof tool execution results by exploiting Python frame introspection to read the wrapper's UUID from its bytecode constants, then writing a forged result directly to file descriptor 1 (bypassing stdout redirection). By calling sys.exit(0), the attacker terminates the wrapper before it prints the legitimate output, causing the MaxKB service to parse and trust the spoofed response as the genuine tool result. This issue has been fixed in version 2.8.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in MaxKB Sandbox Escape Vulnerabilities
View all 4MaxKB prior to version 1.10.8-lts contains an incomplete sandbox implementation that only blacklists binary execution in
Command injection in MaxKB before 2.10.5-lts allows unauthenticated remote attackers to execute arbitrary shell commands
Sandbox escape and privilege escalation in MaxKB 2.3.1 and earlier allow an attacker who can submit or trigger custom Py
Server-side request forgery in MaxKB before 2.10.0 allows any authenticated user holding the default workspace USER role
Authenticated workspace members on MaxKB deployments prior to 2.10.5-lts can escalate to root-level command execution by
OS command injection in MaxKB (1Panel-dev's open-source enterprise AI assistant) before 2.10.0-lts lets an authenticated
Server-side request forgery in MaxKB (open-source AI assistant from 1Panel-dev) allows an authenticated user with permis
Privilege escalation in MaxKB 2.3.1 and earlier allows an authenticated, low-privileged user to overwrite the built-in d
Authentication bypass in MaxKB (1Panel-dev) versions prior to 2.9.0 allows remote unauthenticated attackers to invoke we
Cross-workspace read and modification of model parameter defaults in MaxKB 2.10.3-lts and earlier is possible for an aut
MaxKB releases prior to 2.10.7-lts evaluate attacker-supplied JavaScript stored in a custom tool's Init Param definition
EUVD-2026-22191
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB