This is a summary of the AI-generated 10-question deep analysis. The full version (longer answers, follow-up Q&A, related CVEs) requires login.
Read the full analysis โ
Q1What is this vulnerability? (Essence + Consequences)
๐จ **Essence**: Gradio allows calling **any method** on classes via endpoints. ๐ **Consequences**: Unauthorized **Local File Read (LFR)**. ๐ฅ **Impact**: Sensitive information leakage from the server.
Q2Root Cause? (CWE/Flaw)
๐ก๏ธ **Root Cause**: Improper access control on endpoints. ๐ **CWE**: **CWE-29** (Improper Control of Filename for Include/Include-Adjacent). โ ๏ธ **Flaw**: No restriction on which class methods can be invoked remotely.
Q3Who is affected? (Versions/Components)
๐ฅ **Affected**: **Gradio** (Python library). ๐ **Versions**: **4.3 to 4.12**. ๐ซ **Fixed In**: Version **4.13.0** and above.
Q4What can hackers do? (Privileges/Data)
๐ต๏ธ **Hackers Can**: Read arbitrary files from the server. ๐ **Privileges**: Local file system access. ๐ **Data**: Sensitive configs, source code, secrets, or user data.
Q5Is exploitation threshold high? (Auth/Config)
๐ **Threshold**: **Low**. ๐ **Auth**: Likely **None** required for the specific endpoint. โ๏ธ **Config**: Depends on Gradio deployment, but the flaw is in the core method invocation logic.
Q6Is there a public Exp? (PoC/Wild Exploitation)
๐ฅ **Public Exp?**: **Yes**. ๐ **PoC**: Available on GitHub (DiabloHTB). ๐งช **Tools**: Nuclei templates exist for automated scanning. ๐ **Exploitation**: Active proof-of-concepts are public.
Q7How to self-check? (Features/Scanning)
๐ **Self-Check**: Use **Nuclei** with CVE-2024-1561 template. ๐ ๏ธ **Command**: `nuclei -target <URL> -t CVE-2024-1561.yaml`. ๐ **Verify**: Check if your Gradio version is < 4.13.0.
Q8Is it fixed officially? (Patch/Mitigation)
โ **Fixed**: **Yes**. ๐ฆ **Patch**: Upgrade to **Gradio 4.13.0+**. ๐ **PR**: Fixed in PR #6884. ๐ **Action**: Update library immediately.
โก **Urgency**: **HIGH**. ๐จ **Priority**: Critical for ML model deployments. ๐ข **Action**: Patch immediately if running vulnerable versions. โณ **Risk**: Easy exploitation leads to data breach.