# CVE-2023-49297: Unsafe YAML deserialization in PyDrive2

- Severity: Low 3.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-05T20:51:24.143Z
- Modified: 2026-09-10T03:50:09.173Z
- Also known as: GHSA-v5f6-hjmf-9mc5, PYSEC-2023-291
- Weaknesses: CWE-502
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- iterative PyDrive2: < 1.16.2; = 1.17.0; before 1.16.2; 1.17.0
- pydrive2 (PyPI): 1.17.0; before 1.16.2; before c57355dc2033ad90b7050d681b2c3ba548ff0004

## Every score

- GitHub_M: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/iterative/PyDrive2/security/advisories/GHSA-v5f6-hjmf-9mc5> (exploit, advisory, vendor-advisory, web)
- <https://github.com/iterative/PyDrive2/commit/c57355dc2033ad90b7050d681b2c3ba548ff0004> (fix, patch, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-49297> (advisory)
- <https://github.com/iterative/PyDrive2> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pydrive2/PYSEC-2023-291.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW> (web)

## Sources

- CVE List: [CVE-2023-49297](https://www.cve.org/CVERecord?id=CVE-2023-49297), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-v5f6-hjmf-9mc5](https://github.com/advisories/GHSA-v5f6-hjmf-9mc5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-49297](https://nvd.nist.gov/vuln/detail/CVE-2023-49297), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-291](https://osv.dev/vulnerability/PYSEC-2023-291), CC-BY-4.0, modified 2024-11-21

---

Page: https://cve.day/CVE-2023-49297 · Whole record: https://cve.day/CVE-2023-49297.json · Rebuilt by cve.day 2026-11-25T22:58:31.065Z
