{"cve":"CVE-2023-49297","nvd":{"published":"2023-12-05T21:15:07.460","modified":"2026-06-17T06:35:47.753","status":"Modified","description":"PyDrive2 is a wrapper library of google-api-python-client that simplifies many common Google Drive API V2 tasks. Unsafe YAML deserilization will result in arbitrary code execution. A maliciously crafted YAML file can cause arbitrary code execution if PyDrive2 is run in the same directory as it, or if it is loaded in via `LoadSettingsFile`. This is a deserilization attack that will affect any user who initializes GoogleAuth from this package while a malicious yaml file is present in the same directory. This vulnerability does not require the file to be directly loaded through the code, only present. This issue has been addressed in commit `c57355dc` which is included in release version `1.16.2`. Users are advised to upgrade. There are no known workarounds for this vulnerability.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-502"],"references":["https://github.com/iterative/PyDrive2/commit/c57355dc2033ad90b7050d681b2c3ba548ff0004","https://github.com/iterative/PyDrive2/security/advisories/GHSA-v5f6-hjmf-9mc5","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW/","https://github.com/iterative/PyDrive2/commit/c57355dc2033ad90b7050d681b2c3ba548ff0004"],"products":["iterative:pydrive2"],"source":"nvd","synced_at":"2026-10-19T21:42:34.585441961+00:00"},"epss":{"cve":"CVE-2023-49297","score":0.0051,"percentile":0.43553,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-v5f6-hjmf-9mc5","url":"https://osv.dev/vulnerability/GHSA-v5f6-hjmf-9mc5","summary":"PyDrive2's unsafe YAML deserialization in LoadSettingsFile allows arbitrary code execution","modified":"2026-09-10T03:50:09.173407956Z","packages":[{"ecosystem":"PyPI","name":"pydrive2","purl":"pkg:pypi/pydrive2","ranges":["1.17.0"],"fixed":[]},{"ecosystem":"PyPI","name":"pydrive2","purl":"pkg:pypi/pydrive2","ranges":["<1.16.2"],"fixed":["1.16.2"]}]},{"id":"PYSEC-2023-291","url":"https://osv.dev/vulnerability/PYSEC-2023-291","summary":"","modified":"2024-11-21T14:57:16.548281Z","packages":[{"ecosystem":"PyPI","name":"pydrive2","purl":"pkg:pypi/pydrive2","ranges":["<1.16.2"],"fixed":["1.16.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}