CVE-2026-39420: MaxKB: Sandbox escape via LD_PRELOAD bypass

Published Apr 14, 2026
·
Updated

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 LDPRELOAD-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 LDPRELOAD 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 LDPRELOAD 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.

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:13 AM
Data Sourced
via MITRE·12:13 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 9, 58271
Event
via NVD·05:31 PM
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-39420?

CVE-2026-39420 is considered a high severity vulnerability due to the risk of sandbox escape by authenticated users.

2

How do I fix CVE-2026-39420?

To fix CVE-2026-39420, users should upgrade MaxKB to version 2.8.0 or later.

3

Who is affected by CVE-2026-39420?

CVE-2026-39420 affects all versions of MaxKB up to and including 2.7.1.

4

What attack vector is associated with CVE-2026-39420?

The attack vector for CVE-2026-39420 involves authenticated users exploiting the incomplete sandbox protection via LD_PRELOAD.

5

Can CVE-2026-39420 lead to remote code execution?

Yes, CVE-2026-39420 can potentially lead to remote code execution if the attacker successfully escapes the sandbox.

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