{"id":"CVE-2023-49297","published":"2023-12-05T20:51:24Z","modified":"2025-02-13T17:18:41Z","title":"Unsafe YAML deserialization in PyDrive2","vendor":"iterative","product":"PyDrive2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.3,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.44659,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/iterative/PyDrive2/security/advisories/GHSA-v5f6-hjmf-9mc5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/iterative/PyDrive2/commit/c57355dc2033ad90b7050d681b2c3ba548ff0004","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW/","tags":[]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":8.93},{"name":"CVSS severity","points":2.31}]},"vendorSlug":"iterative","affectedVersions":[{"vendor":"iterative","product":"PyDrive2","versions":["< 1.16.2","= 1.17.0"]}],"affected":[{"ecosystem":"PyPI","package":"PyDrive2","vulnerableRanges":["<1.16.2"],"patched":["1.16.2"],"from":["GHSA-v5f6-hjmf-9mc5","PYSEC-2023-291"],"provenance":"source"}],"summary":{"text":"PyDrive2, a Python wrapper library for the Google Drive API V2 distributed by iterative, contains an unsafe YAML deserialization flaw that is triggered when it loads a settings file (including via LoadSettingsFile) or is run from a directory containing a maliciously crafted YAML file. An attacker who can place such a file in the working directory, and get a user to run PyDrive2 or initialize GoogleAuth from that location, can achieve arbitrary code execution, requiring no authentication and only local user interaction with the affected code path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:04Z"},"euvd":{"id":"EUVD-2023-0292","exploited":false,"provenance":"source"}}