smolagents@0.1.0 vulnerabilities

🤗 smolagents: a barebones library for agents. Agents write python code to call tools or orchestrate other agents.

  • latest version

    1.8.0

  • latest non vulnerable version

  • first published

    1 months ago

  • latest version published

    11 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the smolagents package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Arbitrary Code Execution

    smolagents is a 🤗 smolagents: a barebones library for agents. Agents write python code to call tools or orchestrate other agents.

    Affected versions of this package are vulnerable to Arbitrary Code Execution due to allowing access to Python builtins in local_python_executor.py, and only restricting eval(), compile(), and exec().

    How to fix Arbitrary Code Execution?

    Upgrade smolagents to version 1.5.0 or higher.

    [,1.5.0)
    • H
    Arbitrary Code Execution

    smolagents is a 🤗 smolagents: a barebones library for agents. Agents write python code to call tools or orchestrate other agents.

    Affected versions of this package are vulnerable to Arbitrary Code Execution in the import_modules() function, which can import arbitrary built-in modules such as _os_system, which can execute code. A malicious LLM containing such imports can execute code when loaded.

    How to fix Arbitrary Code Execution?

    Upgrade smolagents to version 1.4.0 or higher.

    [,1.4.0)