Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MaxKB
-
DeliveryAccess Tool Debug API
-
ExploitSubmit env -i python command
-
ExecutionClear LD_PRELOAD variable
-
PersistExecute unrestricted Python subprocess
-
ImpactAchieve RCE with full network access
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 v3.1 score of 6.3 reflects the moderate real-world risk: Attack Vector Network (AV:N) confirms remote exploitability, Attack Complexity Low (AC:L) indicates no special conditions are required, Privileges Required Low (PR:L) means only authenticated users can exploit this, Scope Unchanged (S:U) keeps impact confined to the affected component, and the CIA triad impact (C:L, I:L, A:L) shows partial confidentiality, integrity, and availability compromise. However, the PR:L requirement significantly reduces practical risk compared to unauthenticated RCE; this is not a worm vector. The vulnerability is not listed as confirmed actively exploited (no KEV status provided), and while a public GitHub advisory and commit exist, no standalone proof-of-concept code was identified at time of analysis. SSVC analysis: exploitation is possible given the authentication gate; the attack is automatable once inside; technical impact is high (RCE). The sandbox bypass is deterministic and requires no user interaction (UI:N), making it a genuine priority for organizations running MaxKB, but the authentication requirement and lack of evidence of active exploitation in the wild place this below critical severity in typical risk scoring frameworks. Organizations with untrusted or contractor access to tool creation/execution should prioritize patching. |
| Exploit ScenarioDerived | An authenticated MaxKB user with tool execution privileges (e.g., a contractor or internal user permitted to create custom tools) creates a malicious tool that executes Python code. During tool debugging, the attacker submits code that invokes subprocess.Popen with the command env -i python, which clears all environment variables including LD_PRELOAD and spawns an uncontrolled Python interpreter. The attacker then executes arbitrary Python code with full network and file system access, potentially exfiltrating data, installing persistence, or pivoting to other systems. |
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 with tool execution privileges to bypass the LD_PRELOAD-based sandbox via the env command, enabling unrestricted remote code execution and network access. The vulnerability stems from a patch that permitted execution of /usr/bin/env, which attackers can exploit using env -i to clear environment variables and drop the sandbox.so hook before spawning a native Python subprocess. Vendor-released patch: version 2.8.0.
RemediationAI
Upgrade MaxKB immediately to version 2.8.0 or later, which includes a patch that restricts execution of /usr/bin/env and other bypass vectors. No workaround is available for versions below 2.8.0 other than removing tool execution privileges from untrusted users. Detailed patch information is available at the GitHub security advisory (https://github.com/1Panel-dev/MaxKB/security/advisories/GHSA-7wgv-v2r3-7f7w) and the specific fix commit (https://github.com/1Panel-dev/MaxKB/commit/2d17b08e6b060329803754a05e806d0ddecf3fa8). Release notes for v2.8.0 are at https://github.com/1Panel-dev/MaxKB/releases/tag/v2.8.0.
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 sandbox protection for the Tool Debug API by injecting sandbox.so through the LD_PRELOAD environment variable, a Unix/Linux mechanism that forces dynamic linking of a shared object before other libraries. The sandbox.so library intercepts sensitive C library functions (execve, socket, open) to restrict network and file system access in untrusted Python code execution contexts. The vulnerability exploits a logic flaw in sandbox enforcement: while the LD_PRELOAD mechanism itself is sound, the implementation failed to restrict execution of /usr/bin/env, a utility designed to run commands in a modified environment. The env -i flag completely clears all environment variables before executing a target program, which directly removes the LD_PRELOAD variable that enforces the sandbox hook. This falls under CWE-693 (Protection Mechanism Failure), where a security control is nominally in place but incomplete restrictions allow bypass. The affected product is MaxKB (1Panel-dev/MaxKB per CPE cpe:2.3:a:1panel-dev:maxkb), which is an open-source enterprise AI assistant framework.
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. In versions 2.7.1 and below, an incomplete sandbox protection mechanism allows an authenticated user with tool execution privileges to escape the LD_PRELOAD-based sandbox. By env command the attacker can clear the environment variables and drop the sandbox.so hook, leading to unrestricted Remote Code Execution (RCE) and network access. MaxKB restricts untrusted Python code execution via the Tool Debug API by injecting sandbox.so through the LD_PRELOAD environment variable. This intercepts sensitive C library functions (like execve, socket, open) to restrict network and file access. However, a patch allowed the /usr/bin/env utility to be executed by the sandboxed user. When an attacker is permitted to create subprocesses, they can execute the env -i python command. The -i flag instructs env to completely clear all environment variables before running the target program. This effectively drops the LD_PRELOAD environment variable. The newly spawned Python process will therefore execute natively without any sandbox hooks, bypassing all network and file system restrictions. 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-22178
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB