Skip to main content

Kangas

1 CVEs product

Monthly

CVE-2026-141592 Dec 02, 01:08 HIGH PATCH This Week

Arbitrary Python code execution in Kangas 2.4.11 and earlier lets a crafted .datagrid file run attacker-supplied code with the privileges of the Kangas server process: the grid's About text is scanned for python code blocks containing `.show(...)`, and that argument text is passed to eval() to build the Show DataGrid button each time the About page is rendered, while list-comprehension filter expressions compiled by the ListComprehension SQL function form a second eval path. No authentication is required of the attacker, but the victim must open or view the malicious grid (CVSS UI:P/UI:R), and default `pip install kangas` deployments are exposed because RestrictedPython is optional and not installed, leaving only a __builtins__ replacement that is escaped through attribute traversal such as `().__class__.__base__.__subclasses__()`. No public exploit code is identified at time of analysis; 2.4.12 removes eval from the About path in favor of ast.literal_eval and makes AST validation in safe_compile() unconditional.

Python Code Injection Kangas
NVD GitHub
CVSS 4.0
8.5
CVSS 8.5
HIGH PATCH This Week

Arbitrary Python code execution in Kangas 2.4.11 and earlier lets a crafted .datagrid file run attacker-supplied code with the privileges of the Kangas server process: the grid's About text is scanned for python code blocks containing `.show(...)`, and that argument text is passed to eval() to build the Show DataGrid button each time the About page is rendered, while list-comprehension filter expressions compiled by the ListComprehension SQL function form a second eval path. No authentication is required of the attacker, but the victim must open or view the malicious grid (CVSS UI:P/UI:R), and default `pip install kangas` deployments are exposed because RestrictedPython is optional and not installed, leaving only a __builtins__ replacement that is escaped through attribute traversal such as `().__class__.__base__.__subclasses__()`. No public exploit code is identified at time of analysis; 2.4.12 removes eval from the About path in favor of ast.literal_eval and makes AST validation in safe_compile() unconditional.

Python Code Injection Kangas
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy