CVE-2025-48950 MaxKB Python Sandbox Bypass in Function Library

Medium 5.8 Published Updated

Attackers can bypass the Python sandbox in MaxKB to execute arbitrary code by leveraging executable files in non-restricted directories.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-48950?

CVE-2025-48950 is a medium-severity code injection vulnerability in 1Panel-dev MaxKB, published on 3 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

MaxKB is an open-source AI assistant for enterprise. Prior to version 1.10.8-lts, Sandbox only restricts the execution permissions of binary files in common directories, such as `/bin,/usr/bin`, etc. Therefore, attackers can exploit some files with execution permissions in non blacklisted directories to carry out attacks. Version 1.10.8-lts fixes the issue.

Weakness: CWE-276

Which versions are affected by CVE-2025-48950?

It affects 1 product.

Products include Maxkb Maxkb.

How do I fix CVE-2025-48950?

No fix has been published for CVE-2025-48950 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-48950 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-48950 exists.

Sources

Also known as GHSA-p2qq-x9j2-px8v.

Is CVE-2025-48950 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free