🔍 CVE-2026-39421

6.3
CVSS Score
MEDIUM
2026-04-14
2026-10-26 22:10
✅ 완료

🇰🇷 한글 설명

MaxKB 2.7.1 이하의 ToolExecutor 컴포넌트에서 Python ctypes를 악용한 샌드박스 탈출 취약점. 인증된 사용자가 LD_PRELOAD 기반 sandbox.so 모듈을 우회하고 pkey_mprotect를 통해 직접 커널 시스템 호출로 임의 코드 실행 및 네트워크 유출 가능.

💡 쉬운 설명

MaxKB의 보안 제한을 우회하여 서버에서 권한 없이 명령을 실행할 수 있는 취약점입니다. 로그인한 사용자가 중요한 데이터를 탈취하거나 시스템을 제어할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

MaxKB 버전 2.7.1 이하

⚔️ 공격 벡터

Workspace 권한을 가진 인증된 사용자가 ctypes 라이브러리를 통해 pkey_mprotect 호출로 PROT_EXEC 제한 우회

🛡️ 대응 방법

MaxKB를 2.8.0 이상으로 즉시 업그레이드

🔧 검증 코드

SAFE가 출력되면 패치됨, VULNERABLE이 출력되거나 명령 실패시 즉시 업그레이드 필요

Shell / Script
pip show maxkb 2>/dev/null | grep Version | awk '{print $2}' | awk -F. '{if($1>2||($1==2&&$2>=8)) print "SAFE"; else print "VULNERABLE"}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

💻 영향받는 소프트웨어

Python