Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to MaxKB workspace
-
DeliveryAccess ToolExecutor component
-
ExploitInvoke ctypes library
-
InstallCall pkey_mprotect syscall
-
C2Bypass sandbox mprotect restriction
-
ExecuteRestore executable memory
-
ImpactExecute arbitrary code
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Impact | The CVSS score of 6.3 (Medium) reflects the authentication requirement (PR:L) and network attack vector (AV:N), which limits immediate widespread exploitation. However, the real-world risk is elevated by several factors: (1) the vulnerability grants complete arbitrary code execution (CWE-693 protection bypass) to any authenticated user with workspace privileges, which may be numerous in multi-tenant or open-source deployments; (2) the attack requires only low complexity (AC:L) and no user interaction (UI:N), making exploitation trivial once authenticated access is obtained; (3) the compromised scope (S:U) is limited to the affected service, but because MaxKB is often containerized, a successful exploit can lead to container escape and lateral movement to backend infrastructure; (4) CISA KEV status is not confirmed, and no public proof-of-concept exists, reducing immediate exploitation pressure; (5) the sandbox architecture itself is security-critical, so any bypass fundamentally undermines the entire defense posture. The authentication gate is the primary limiting factor; however, in environments where MaxKB is accessible to internal users, contractors, or customers, the threat surface is substantially larger. For organizations running MaxKB 2.7.1 or earlier in multi-user or customer-facing scenarios, this is a critical patching priority despite the medium CVSS score. |
| Exploit ScenarioDerived | An authenticated user with workspace privileges in a MaxKB deployment logs in, creates or executes a tool that leverages Python's ctypes library to call pkey_mprotect directly, bypassing the LD_PRELOAD sandbox restrictions. The attacker then executes arbitrary shell commands or Python code to establish a reverse shell or exfiltrate sensitive data from the container or underlying host. Attack complexity is low and requires only knowledge of ctypes and the pkey_mprotect syscall number, making it practical for attackers with basic systems programming skills. |
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 attackers with workspace privileges to execute arbitrary code by exploiting a sandbox escape vulnerability in the ToolExecutor component. By leveraging Python's ctypes library to invoke raw system calls and bypassing the LD_PRELOAD-based sandbox.so module through the unblocked pkey_mprotect syscall, attackers can achieve remote code execution, enabling network exfiltration and container compromise. This vulnerability is confirmed fixed in version 2.8.0, and no public exploit code has been identified at time of analysis.
RemediationAI
Vendor-released patch: MaxKB version 2.8.0 or later. Upgrade to version 2.8.0 or any newer version immediately by pulling the latest release from https://github.com/1Panel-dev/MaxKB/releases/tag/v2.8.0. The fix is also available in the upstream repository via commit 479701a4d2e6059506bad0057a66bed91abb5aef (https://github.com/1Panel-dev/MaxKB/commit/479701a4d2e6059506bad0057a66bed91abb5aef), which comprehensively addresses the pkey_mprotect bypass. No workarounds are available prior to patching; the only effective mitigation is to restrict workspace access to highly trusted users and isolate MaxKB containers from sensitive network segments until patching is completed.
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 for the ToolExecutor component using LD_PRELOAD to intercept critical system functions (execve, system, connect, open, and mprotect) within Python processes. The sandbox uses mprotect interception to prevent PROT_EXEC memory allocations, restricting code execution capabilities. However, the sandbox fails to intercept the pkey_mprotect syscall, a newer memory protection mechanism introduced in Linux kernel 4.6 that provides fine-grained memory access control via memory protection keys. By calling ctypes to directly invoke pkey_mprotect, attackers bypass the sandbox's mprotect restrictions and restore executable memory permissions. This occurs within the context of Python's ctypes library, which allows low-level foreign function interface calls to kernel syscalls without higher-level abstraction. The vulnerability is classified as CWE-693 (Protection Mechanism Failure), indicating the root cause is an incomplete or improperly configured security control that fails to comprehensively block all execution pathways.
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:L/PR:L/UI:N/S:C/C:L/I:L/A:L
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
MaxKB is an open-source AI assistant for enterprise. Versions 2.7.1 and below contain a sandbox escape vulnerability in the ToolExecutor component. By leveraging Python's ctypes library to execute raw system calls, an authenticated attacker with workspace privileges can bypass the LD_PRELOAD-based sandbox.so module to achieve arbitrary code execution via direct kernel system calls, enabling full network exfiltration and container compromise. The library intercepts critical standard system functions such as execve, system, connect, and open. It also intercepts mprotect to prevent PROT_EXEC (executable memory) allocations within the sandboxed Python processes, but pkey_mprotect is not blocked. 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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-22180
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB