CVE-2026-39420: MaxKB is an open-source AI assistant for enterprise. In versions 2.7.1 and below, an incomplete sandbox protection…

CVE-2026-39420 · Severity: medium · CVSS 6.3 · Published 2026-04-14

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.

Technologies: Maxkb. Vendors: Maxkb.

Quick answers

Is CVE-2026-39420 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-39420 being exploited in the wild.
How severe is CVE-2026-39420?
Medium severity, with a CVSS score of 6.3, published 14 April 2026.
Which products and versions are affected?
Maxkb. The advisory does not name versions.
Is there a fix for CVE-2026-39420?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
Am I affected by CVE-2026-39420?
Check whether you run Maxkb. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Affected products

  • Maxkb

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.