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

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-04-14T00:17:10.279Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-94, CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- 1Panel-dev MaxKB: < 2.8.0
- maxkb maxkb: before 2.8.0

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`

## References

- <https://github.com/1Panel-dev/MaxKB/security/advisories/GHSA-9c6w-j7w5-3gf7> (vendor-advisory)
- <https://github.com/1Panel-dev/MaxKB/commit/479701a4d2e6059506bad0057a66bed91abb5aef> (patch)
- <https://github.com/1Panel-dev/MaxKB/releases/tag/v2.8.0> (release-notes)

## Sources

- CVE List: [CVE-2026-39421](https://www.cve.org/CVERecord?id=CVE-2026-39421), CVE Terms of Use, modified 2026-04-14
- NVD: [CVE-2026-39421](https://nvd.nist.gov/vuln/detail/CVE-2026-39421), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39421 · Whole record: https://cve.day/CVE-2026-39421.json · Rebuilt by cve.day 2026-11-25T22:59:18.664Z
