CVE-2023-49297

Public Exploit
Unsafe YAML deserialization in PyDrive2

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.

Category

3.3
CVSS
Severity: Low
CVSS 3.1 •
EPSS 0.14%
Vendor Advisory github.com
Affected: iterative PyDrive2
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-49297?
CVE-2023-49297 has been scored as a low severity vulnerability.
How to fix CVE-2023-49297?
To fix CVE-2023-49297, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-49297 being actively exploited in the wild?
It is possible that CVE-2023-49297 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-49297?
CVE-2023-49297 affects iterative PyDrive2.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.