Unsafe YAML deserialization in PyDrive2
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| iterative | PyDrive2 | before 1.16.2; = 1.17.0 | 1.16.2 | Patch available | CNA |
| — | PyDrive2 (PyPI) | — | — | No fix listed | GHSA-v5f6-hjmf-9mc5 |
| — | PyDrive2 (PyPI) | before 1.16.2 | 1.16.2 | Patch available | GHSA-v5f6-hjmf-9mc5 |
- PyDrive2 Vendoriterative Affected before 1.16.2; = 1.17.0 Fixed in 1.16.2 Patch available CNA
- PyDrive2 (PyPI) Vendor— Affected — Fixed in — No fix listed GHSA-v5f6-hjmf-9mc5
- PyDrive2 (PyPI) Vendor— Affected before 1.16.2 Fixed in 1.16.2 Patch available GHSA-v5f6-hjmf-9mc5
Remediation
- Fix · CNA PyDrive2 (iterative) Fixed in 1.16.2
- Fix · GHSA-v5f6-hjmf-9mc5 PyDrive2 (PyPI) Fixed in 1.16.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-49297
- 2026-10-03 Alias added: GHSA-v5f6-hjmf-9mc5
References
Other 6
- https://lists.fedoraproject.org/archives/list/[email protected]/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW/
- https://github.com/iterative/PyDrive2
- https://github.com/pypa/advisory-database/tree/main/vulns/pydrive2/PYSEC-2023-291.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG
- https://lists.fedoraproject.org/archives/list/[email protected]/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW
Sources
- CVE-2023-49297 · CVE Program
- CVE-2023-49297 · NVD
- FIRST EPSS
- GHSA-v5f6-hjmf-9mc5 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-49297 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences