{"api_version":"1","generated_at":"2026-06-21T20:37:52+00:00","cve":"CVE-2021-43831","urls":{"html":"https://cve.report/CVE-2021-43831","api":"https://cve.report/api/cve/CVE-2021-43831.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-43831","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-43831"},"summary":{"title":"CVE-2021-43831","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-12-15 20:15:00","updated_at":"2021-12-21 15:43:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr","name":"https://github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr","refsource":"CONFIRM","tags":[],"title":"Files on the host computer can be accessed from the Gradio interface · Advisory · gradio-app/gradio · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781","name":"https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781","refsource":"MISC","tags":[],"title":"secure path hotfix · gradio-app/gradio@41bd364 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43831","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43831","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"43831","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gradio_project","cpe5":"gradio","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-43831","STATE":"PUBLIC","TITLE":"Files on the host computer can be accessed from the Gradio interface"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"gradio","version":{"version_data":[{"version_value":"< 2.5.0"}]}}]},"vendor_name":"gradio-app"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr","refsource":"CONFIRM","url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr"},{"name":"https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781","refsource":"MISC","url":"https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781"}]},"source":{"advisory":"GHSA-rhq2-3vr9-6mcr","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-12-15 20:15:00","lastModifiedDate":"2021-12-21 15:43:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH"},"exploitabilityScore":3.1,"impactScore":4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*","versionEndExcluding":"2.5.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"43831","Ordinal":"221368","Title":"CVE-2021-43831","CVE":"CVE-2021-43831","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"43831","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}