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

Source: https://junglewise.ai/threats/cve-2024-34511-gradio-component-server-improper-server-function-validation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

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

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.

Technologies: [gradio (PyPI)](https://junglewise.ai/threats/technologies/gradio). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-34511 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-34511 being exploited in the wild.

**How severe is CVE-2024-34511?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** gradio (PyPI) ECOSYSTEM:introduced=0,fixed=4.13.0.

**Is there a fix for CVE-2024-34511?** Yes. gradio (PyPI): upgrade to 4.13.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-34511 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2024-34511?** Check whether you run gradio (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- gradio (PyPI): upgrade to 4.13.0 or later

  ```sh
  pip install "gradio>=4.13.0"
  ```


## 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

## Identifiers

- CVE-2024-34511
- GHSA-34rf-p3r3-58x2
- PYSEC-2026-1407

## Timeline

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

## References

- [https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2](https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2)

## Related threats

- [PYSEC-2026-1423 - Gradio CORS Origin Validation Bypass Vulnerability](https://junglewise.ai/threats/cve-2025-5320-gradio-cors-origin-validation-bypass-vulnerability)
- [PYSEC-2026-1410 - Gradio DOS in multipart boundry while uploading the file](https://junglewise.ai/threats/cve-2024-8966-gradio-dos-in-multipart-boundry-while-uploading-the-file)
- [PYSEC-2026-1411 - Gradio Vulnerable to Open Redirect](https://junglewise.ai/threats/cve-2024-8021-gradio-vulnerable-to-open-redirect)
- [PYSEC-2026-1418 - Gradio Path Traversal vulnerability](https://junglewise.ai/threats/cve-2024-12217-gradio-path-traversal-vulnerability)
- [PYSEC-2026-1417 - Gradio Vulnerable to Arbitrary File Deletion](https://junglewise.ai/threats/cve-2024-10648-gradio-vulnerable-to-arbitrary-file-deletion)
