Junglewise Threat Intelligence

CVE-2024-34511: PYSEC-2026-1407 - Gradio's Component Server does not properly consider` _is_server_fn` for functions

CVE-2024-34511 · Severity: low · CVSS 3.1 · Published 2026-07-07

Technologies: gradio (PyPI). Vendors: PyPI.

Executive brief

Gradio is a popular open-source framework for building machine learning interfaces and web applications. The Component Server in Gradio failed to properly validate the `_is_server_fn` attribute on functions, potentially allowing unauthorized function execution. An attacker could exploit this to execute functions that should be restricted, compromising the integrity and security of applications built with Gradio.

Technical details

The vulnerability exists in Gradio's Component Server (versions before 4.13.0) due to improper consideration of the `_is_server_fn` flag when processing functions. This flag is intended to control which functions are eligible for remote execution. An unauthenticated attacker on the network can send crafted requests to the Component Server that bypass this validation check. By doing so, they can invoke functions that were not intended to be exposed as server functions, potentially leading to unauthorized code execution or information disclosure. The fix was implemented in version 4.13.0.

Affected products

  • Gradio Gradio before 4.13.0

Timeline

  • 2024-05-05: disclosed: Vulnerability published on OSV
  • 2024-05-05: patched: Fixed in version 4.13.0

References

Related threats