CVE-2023-49297
Unsafe YAML deserialization in PyDrive2
Reported by github_m · Published December 5, 2023
pydrive2 is fixed in 1.16.2 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pydrive2 | PyPI | 1.16.2 |
| pydrive2 | iterative | 1.16.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| iterative | PyDrive2 | < 1.16.2, = 1.17.0 |
| iterative | PyDrive2 | 0, 1.17.0 |
| PyPI | PyDrive2 | 1.17.0, 0 |
Timeline
- Dec 5, 2023 CVE Published
- Dec 6, 2023 EPSS Score (30 in total, the first dated here)
- Dec 24, 2023 PoC Published
- Nov 21, 2024 CVE Updated
- Jan 27, 2026 Security Advisory
- Jul 31, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-49297
vulnetix vdb fixes CVE-2023-49297
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-49297/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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://nvd.nist.gov/vuln/detail/CVE-2023-49297 advisory
- https://github.com/advisories/GHSA-v5f6-hjmf-9mc5 advisory
- https://github.com/iterative/PyDrive2 url
- https://github.com/pypa/advisory-database/tree/main/vulns/pydrive2/PYSEC-2023-291.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW url