1Panel-dev MaxKB
MaxKB: SSRF via sandbox network hook bypass
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.8.0
Fixed in 2.8.0
Mitigation
Upgrade MaxKB to 2.8.0 or later.
References
- Vendor advisory github.com/1Panel-dev/MaxKB/security/advisorie…
- Patch github.com/1Panel-dev/MaxKB/commit/4d06362750b…
- Release notes github.com/1Panel-dev/MaxKB/releases/tag/v2.8.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.