Security advisory
Gradio is an open source framework for building interactive machine learning models and demos. In versions prior to 2.5.0 there is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces. File paths are not restricted and users who receive a Gradio link can access any files on the host computer if they know the file names or file paths. This is limited only by the host operating system. Paths are opened in read only mode. The problem has been patched in gradio 2.5.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-43831
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:02 UTC · Revision 1
Source evidence
Gradio is an open source framework for building interactive machine learning models and demos. In versions prior to 2.5.0 there is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces. File paths are not restricted and users who receive a Gradio link can access any files on the host computer if they know the file names or file paths. This is limited only by the host operating system. Paths are opened in read only mode. The problem has been patched in gradio 2.5.0.
osv:CVE-2021-43831
Complete source record
{
"id": "36b9f28e920f73ce0b14fd4f38bb3ec65a09f96f64f69ca4e4d3188dc38e8cbe",
"url": "https://osv.dev/vulnerability/CVE-2021-43831",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-43831",
"summary": "Gradio is an open source framework for building interactive machine learning models and demos. In versions prior to 2.5.0 there is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces. File paths are not restricted and users who receive a Gradio link can access any files on the host computer if they know the file names or file paths. This is limited only by the host operating system. Paths are opened in read only mode. The problem has been patched in gradio 2.5.0.",
"evidence": "osv:CVE-2021-43831",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-43831",
"aliases": [
"CVE-2021-43831",
"GHSA-rhq2-3vr9-6mcr",
"PYSEC-2021-873"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gradio-app/gradio",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "43f5de68579919b0632ceb6107a99c629483ea2f"
},
{
"fixed": "41bd3645bdb616e1248b2167ca83636a2653f781"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.5.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "41bd3645bdb616e1248b2167ca83636a2653f781"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.4.0",
"v2.3.6"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43831.json"
}
}
],
"modified": "2026-10-20T10:55:09.033978595Z",
"provider": "osv",
"references": [
"https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781",
"https://github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-43831",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386951,
"published_at": "2021-12-15T20:15:08.62+00:00"
}