CVE-2026-39421
published medium CVSS 3.1 · 6.3MaxKB: Sandbox escape via ctypes and unhooked SYS_pkey_mprotect
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 1Panel-dev | — | MaxKB< 2.8.0 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| 1Panel-dev | MaxKB | < 2.8.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-693 CWE-693: Protection Mechanism Failure
- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
3Provider assertions
2GitHub_M · cna
MaxKB: Sandbox escape via ctypes and unhooked SYS_pkey_mprotect
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1835cb02b34fe57b88b8b83673a102562476d872a40cf4ccef52a6bbd55459f3
- Ingested
- 23 Sep 2026, 09:12:08 UTC
- Source record
- Official CVE record