mcp-contextforge-gateway has RestrictedPython sandbox bypass via getattr builtin in python_sandbox_server
GHSA-xm98-3vcf-fph7 · CVE-2026-53710 · PYSEC-2026-3862 · 갱신 2026. 9. 10.
영향 받는 패키지
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | mcp-contextforge-gateway | 1.0.2 |
GHSA-xm98-3vcf-fph7 · CVE-2026-53710 · PYSEC-2026-3862 · 갱신 2026. 9. 10.
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | mcp-contextforge-gateway | 1.0.2 |
tools/callAn attacker with access to the python_sandbox_server HTTP endpoint can execute OS commands with the privileges of the server process. In containerized deployments with host mounts or internal network reachability, this can become filesystem compromise or network pivoting from the gateway host.
Remove raw getattr and setattr from safe_builtins, expose only policy-controlled attribute access if dynamic lookup is required, replace substring filtering with a stricter RestrictedPython policy pipeline, and add authentication to HTTP transport for all tools/call requests.
This report covers the python_sandbox_server sub-project. The core ContextForge gateway and proxy components are not directly affected. The Critical score assumes HTTP reachability; stdio-only deployments reduce the attack vector.