CVE-2026-39418
JSON

5.0medium

MaxKB: SSRF via sandbox network hook bypass

Severity
5.0medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

MaxKB is an open-source AI assistant for enterprise. In versions 2.7.1 and below, sandbox network protection can be bypassed by using socket.sendto() with the MSG_FASTOPEN flag. This allows authenticated user with tool-editing permissions to reach internal services that are explicitly blocked by the sandbox's banned hosts configuration. MaxKB's sandbox uses LD_PRELOAD to hook the connect() function and block connections to banned IPs, but Linux's sendto() with the MSG_FASTOPEN flag can establish TCP connections directly through the kernel without ever calling connect(), completely bypassing the IP validation. Although sendto is listed in the syscall() wrapper, this is ineffective because glibc invokes the kernel syscall directly rather than routing through the hooked syscall() function. This issue has been fixed in version 2.8.0.

Affected

Product or packageVersionsReported by
1Panel-dev MaxKB< 2.8.0CVE List
maxkb maxkbbefore 2.8.0NVD

All scores

GitHub_M5.0medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD7.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

MaxKB is an open-source AI assistant for enterprise. In versions 2.7.1 and below, sandbox network protection can be bypassed by using socket.sendto() with the MSG_FASTOPEN flag. This allows authenticated user with tool-editing permissions to reach internal services that are explicitly blocked by the sandbox's banned hosts configuration. MaxKB's sandbox uses LD_PRELOAD to hook the connect() function and block connections to banned IPs, but Linux's sendto() with the MSG_FASTOPEN flag can establish TCP connections directly through the kernel without ever calling connect(), completely bypassing the IP validation. Although sendto is listed in the syscall() wrapper, this is ineffective because glibc invokes the kernel syscall directly rather than routing through the hooked syscall() function. This issue has been fixed in version 2.8.0.

NVD (es)

MaxKB es un asistente de IA de código abierto para empresas. En las versiones 2.7.1 e inferiores, la protección de red del sandbox puede ser eludida mediante el uso de socket.sendto() con la bandera MSG_FASTOPEN. Esto permite a usuarios autenticados con permisos de edición de herramientas acceder a servicios internos que están explícitamente bloqueados por la configuración de hosts prohibidos del sandbox. El sandbox de MaxKB utiliza LD_PRELOAD para interceptar la función connect() y bloquear las conexiones a IPs prohibidas, pero sendto() de Linux con la bandera MSG_FASTOPEN puede establecer conexiones TCP directamente a través del kernel sin llamar nunca a connect(), eludiendo completamente la validación de IP. Aunque sendto está listado en el wrapper de syscall(), esto es ineficaz porque glibc invoca la llamada al sistema del kernel directamente en lugar de enrutar a través de la función syscall() interceptada. Este problema ha sido solucionado en la versión 2.8.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39418 changed 2026-04-14CVE Terms of Use
NVDCVE-2026-39418 changed 2026-10-26Public domain