Skip to main content

Maxkb CVE-2026-39420

| EUVDEUVD-2026-22178 HIGH
Protection Mechanism Failure (CWE-693)
2026-04-14 GitHub_M
7.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to MaxKB
  2. Delivery
    Access Tool Debug API
  3. Exploit
    Submit env -i python command
  4. Execution
    Clear LD_PRELOAD variable
  5. Persist
    Execute unrestricted Python subprocess
  6. Impact
    Achieve 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MaxKB < 2.8.0

Affected Packages

euvd maxkb fix: 2.8.0

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

NVD PRIMARY 7.4 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

5
Severity Changed
Oct 26, 2026 - 21:23 NVD
MEDIUM HIGH
CVSS changed
Oct 26, 2026 - 21:23 NVD
6.3 (MEDIUM) 7.4 (HIGH)
Patch released
Apr 20, 2026 - 17:35 nvd
Patch available
Patch available
Apr 16, 2026 - 05:29 EUVD
2.8.0
CVE Published
Apr 14, 2026 - 00:13 nvd
MEDIUM 6.3

DescriptionNVD

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

EPSS Score
0.2%
Top 64% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 4

More in Maxkb

View all
CVE-2025-48950 HIGH POC
8.8 Jun 03

MaxKB prior to version 1.10.8-lts contains an incomplete sandbox implementation that only blacklists binary execution in

CVE-2026-77521 CRITICAL
10.0 Sep 21

Command injection in MaxKB before 2.10.5-lts allows unauthenticated remote attackers to execute arbitrary shell commands

CVE-2025-66419 CRITICAL
10.0 Dec 11

Sandbox escape and privilege escalation in MaxKB 2.3.1 and earlier allow an attacker who can submit or trigger custom Py

CVE-2026-56779 MEDIUM POC
5.3 Jun 25

Server-side request forgery in MaxKB before 2.10.0 allows any authenticated user holding the default workspace USER role

CVE-2026-79916 CRITICAL
9.1 Sep 21

Authenticated workspace members on MaxKB deployments prior to 2.10.5-lts can escalate to root-level command execution by

CVE-2026-54149 HIGH
8.8 Jul 10

OS command injection in MaxKB (1Panel-dev's open-source enterprise AI assistant) before 2.10.0-lts lets an authenticated

CVE-2025-64511 HIGH
8.8 Nov 13

Server-side request forgery in MaxKB (open-source AI assistant from 1Panel-dev) allows an authenticated user with permis

CVE-2025-66446 HIGH
7.5 Dec 11

Privilege escalation in MaxKB 2.3.1 and earlier allows an authenticated, low-privileged user to overwrite the built-in d

CVE-2026-44847 HIGH
7.5 May 26

Authentication bypass in MaxKB (1Panel-dev) versions prior to 2.9.0 allows remote unauthenticated attackers to invoke we

CVE-2026-77523 HIGH
7.4 Sep 21

Cross-workspace read and modification of model parameter defaults in MaxKB 2.10.3-lts and earlier is possible for an aut

CVE-2026-129998 HIGH
7.3 Nov 20

MaxKB releases prior to 2.10.7-lts evaluate attacker-supplied JavaScript stored in a custom tool's Init Param definition

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy