CVE-2023-49297Iterative Pydrive2
High 7.8
Follow: this CVE · Iterative · Iterative Pydrive2 We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 45
- Auth required
- Yes
- Published
- Dec 5, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pydrive2.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pydrive2 |
1.17.0 |
no fixed version | — |
| PyPI | pydrive2 |
< 1.16.2 |
1.16.2 |
pip install "pydrive2>=1.16.2" |
| PyPI | pydrive2 |
< 1.16.2 |
1.16.2 |
pip install "pydrive2>=1.16.2" |
Per OSV / GitHub Advisories (GHSA-v5f6-hjmf-9mc5, PYSEC-2023-291). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| iterative | pydrive2 | < 1.16.2 |
| iterative | pydrive2 | 1.17.0 |
Official advisories
- python313-pydrive2-1.18.1-2.4 on GA media · SUSE · openSUSE-SU-2026:12030-1 · Oct 4, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org