Cyber Resilience

CVE-2024-4940

MediumPublic PoC

Published: 22 June 2024

Published
22 June 2024
Modified
29 July 2025
KEV Added
Patch
CVSS Score v3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Score 0.0724 91.8th percentile
Risk Priority 17 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2024-4940 is a medium-severity Open Redirect (CWE-601) vulnerability in Gradio Project Gradio. Its CVSS base score is 6.1 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Spearphishing Link (T1566.002); ranked in the top 8.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as Other Platforms; in the Other ATLAS/OWASP Terms risk domain.

Deeper analysis

An open redirect vulnerability tracked as CVE-2024-4940 affects the latest version of gradio-app/gradio. The flaw arises from improper validation of user-supplied input during URL handling and is assigned CWE-601 with a CVSS 3.1 score of 6.1.

An unauthenticated attacker can supply a crafted URL that causes the application to redirect victims to an arbitrary external site. Successful exploitation can be chained into phishing campaigns, cross-site scripting, server-side request forgery, or other follow-on attacks that rely on the redirected user context.

EPSS for the CVE remains flat at 0.0724 with no material rise from its recorded peak. The issue was disclosed via a huntr.com bounty entry.

EU & UK References

Vulnerability details

An open redirect vulnerability exists in the gradio-app/gradio, affecting the latest version. The vulnerability allows an attacker to redirect users to arbitrary websites, which can be exploited for phishing attacks, Cross-site Scripting (XSS), Server-Side Request Forgery (SSRF), amongst others. This…

more

issue is due to improper validation of user-supplied input in the handling of URLs. Attackers can exploit this vulnerability by crafting a malicious URL that, when processed by the application, redirects the user to an attacker-controlled web page.

CWE(s)

AI Security AnalysisAI

AI Category
Other Platforms
Risk Domain
Other ATLAS/OWASP Terms
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Gradio is an open-source Python library for creating web-based UIs and demos for machine learning models, fitting as an 'Other Platforms' category for AI/ML deployment tools. The vulnerability is an open redirect in a tool used in AI/ML workflows, confirmed AI-related via huntr.com AI/ML bounty platform.

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1566.002 Spearphishing Link Initial Access
Adversaries may send spearphishing emails with a malicious link in an attempt to gain access to victim systems.
Why these techniques?

The open redirect vulnerability enables attackers to craft malicious URLs that redirect users to arbitrary attacker-controlled websites, facilitating spearphishing link attacks.

Affected Assets

gradio project
gradio
4.36.0

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-601

Security awareness includes verifying URLs and avoiding untrusted redirects that lead to malicious sites.

addresses: CWE-601

Validates redirect targets and URLs to ensure they conform to allowed destinations.

References