Skip to content

Security ---- Unsandboxed code execution in PythonFunction #693

Description

@Rickidevs

Summary

A security issue exists in PythonFunction.implementation in
langfun/core/coding/python/generation.py.

The method calls execution.run() without explicit sandboxing,
which can allow arbitrary code execution in the host process when
processing untrusted input (LLM output, MCP server responses).

Fix

A patch has been submitted in PR #692

Disclosure

Reported to Google OSS VRP. Full details available upon request
to maintainers.

Would appreciate a review and merge of the linked PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions