Vulnerability · Published Dec 5, 2023 · Assigned by GitHub_M
CVE-2023-49297Unsafe YAML deserialization in PyDrive2
Low 3.3
In plain English
A low-severity unsafe deserialization in PyDrive2 from iterative. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | pydrive2 | no fix listed | GHSA-v5f6-hjmf-9mc5 |
| PyPI | pydrive2 | 1.16.2 | GHSA-v5f6-hjmf-9mc5 |
| PyPI | pydrive2 | 1.16.2 | PYSEC-2023-291 |
| Ubuntu:24.04:LTS | pydrive2 | no fix listed | UBUNTU-CVE-2023-49297 |
| Ubuntu:25.10 | pydrive2 | no fix listed | UBUNTU-CVE-2023-49297 |
Affected products (as reported)
Weakness: CWE-502 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
References
- https://github.com/iterative/PyDrive2/security/advisories/GHSA-v5f6-hjmf-9mc5 x_refsource_CONFIRM
- https://github.com/iterative/PyDrive2/commit/c57355dc2033ad90b7050d681b2c3ba548ff0004 x_refsource_MISC
- 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/