{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2025-5320",
        "assignerOrgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
        "state": "PUBLISHED",
        "assignerShortName": "VulDB",
        "dateReserved": "2025-05-29T08:05:26.904Z",
        "datePublished": "2025-05-29T13:31:04.612Z",
        "dateUpdated": "2025-06-01T04:39:35.844Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
                "shortName": "VulDB",
                "dateUpdated": "2025-06-01T04:39:35.844Z"
            },
            "title": "gradio-app gradio CORS is_valid_origin privilege escalation",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "cweId": "CWE-346",
                            "lang": "en",
                            "description": "Origin Validation Error"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "cweId": "CWE-345",
                            "lang": "en",
                            "description": "Insufficient Verification of Data Authenticity"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "gradio-app",
                    "product": "gradio",
                    "versions": [
                        {
                            "version": "5.29.0",
                            "status": "affected"
                        },
                        {
                            "version": "5.29.1",
                            "status": "affected"
                        }
                    ],
                    "modules": [
                        "CORS Handler"
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A vulnerability classified as problematic has been found in gradio-app gradio up to 5.29.1. This affects the function is_valid_origin of the component CORS Handler. The manipulation of the argument localhost_aliases leads to erweiterte Rechte. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way."
                },
                {
                    "lang": "de",
                    "value": "Es wurde eine Schwachstelle in gradio-app gradio bis 5.29.1 entdeckt. Sie wurde als problematisch eingestuft. Hiervon betroffen ist die Funktion is_valid_origin der Komponente CORS Handler. Mittels dem Manipulieren des Arguments localhost_aliases mit unbekannten Daten kann eine erweiterte Rechte-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Die Komplexität eines Angriffs ist eher hoch. Sie ist schwierig auszunutzen. Der Exploit steht zur öffentlichen Verfügung."
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "version": "4.0",
                        "baseScore": 6.3,
                        "vectorString": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "baseScore": 3.7,
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N",
                        "baseSeverity": "LOW"
                    }
                },
                {
                    "cvssV3_0": {
                        "version": "3.0",
                        "baseScore": 3.7,
                        "vectorString": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N",
                        "baseSeverity": "LOW"
                    }
                },
                {
                    "cvssV2_0": {
                        "version": "2.0",
                        "baseScore": 2.6,
                        "vectorString": "AV:N/AC:H/Au:N/C:N/I:P/A:N"
                    }
                }
            ],
            "timeline": [
                {
                    "time": "2025-05-29T00:00:00.000Z",
                    "lang": "en",
                    "value": "Advisory disclosed"
                },
                {
                    "time": "2025-05-29T02:00:00.000Z",
                    "lang": "en",
                    "value": "VulDB entry created"
                },
                {
                    "time": "2025-06-01T06:41:23.000Z",
                    "lang": "en",
                    "value": "VulDB entry last update"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Jiacheng Zhong",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Zhengyu Liu",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Gavin Zhong (VulDB User)",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "Gavin Zhong (VulDB User)",
                    "type": "analyst"
                }
            ],
            "references": [
                {
                    "url": "https://vuldb.com/?id.310491",
                    "name": "VDB-310491 | gradio-app gradio CORS is_valid_origin privilege escalation",
                    "tags": [
                        "vdb-entry",
                        "technical-description"
                    ]
                },
                {
                    "url": "https://vuldb.com/?ctiid.310491",
                    "name": "VDB-310491 | CTI Indicators (IOB, IOC, IOA)",
                    "tags": [
                        "signature",
                        "permissions-required"
                    ]
                },
                {
                    "url": "https://vuldb.com/?submit.580250",
                    "name": "Submit #580250 | gradio <=5.29.1 Cross-Site Request Forgery",
                    "tags": [
                        "third-party-advisory"
                    ]
                },
                {
                    "url": "https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe",
                    "tags": [
                        "related"
                    ]
                },
                {
                    "url": "https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe#proof-of-concept-poc",
                    "tags": [
                        "exploit"
                    ]
                }
            ]
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-05-29T13:43:51.563565Z",
                                "id": "CVE-2025-5320",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-05-29T13:44:05.707Z"
                }
            }
        ]
    }
}