CVE-2026-39421: MaxKB: Sandbox escape via ctypes and unhooked SYS_pkey_mprotect

Published Apr 14, 2026
·
Updated

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 LDPRELOAD-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 PROTEXEC (executable memory) allocations within the sandboxed Python processes, but pkeymprotect is not blocked. This issue has been fixed in version 2.8.0.

Affected Software

2 affected components
MaxKB MaxKB<=2.7.1
MaxKB MaxKB<2.8.0

Event History

Apr 14, 2026
CVE Published
via MITRE·12:17 AM
Data Sourced
via MITRE·12:17 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39421?

CVE-2026-39421 is a critical severity vulnerability due to its potential for sandbox escape.

2

How do I fix CVE-2026-39421?

To fix CVE-2026-39421, upgrade MaxKB to version 2.8.0 or later.

3

What is the impact of CVE-2026-39421?

The impact of CVE-2026-39421 allows authenticated users to escape the sandbox and execute arbitrary system calls.

4

Which versions of MaxKB are affected by CVE-2026-39421?

MaxKB versions 2.7.1 and below are affected by CVE-2026-39421.

5

What component of MaxKB is vulnerable in CVE-2026-39421?

The ToolExecutor component of MaxKB is vulnerable in CVE-2026-39421.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203