Vulnerability · Published Dec 5, 2023 · Assigned by GitHub_M

CVE-2023-49297Unsafe YAML deserialization in PyDrive2

Low 3.3

In plain English

A low-severity unsafe deserialization in PyDrive2 from iterative. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.3Low
Exploit odds (30 days)0.5%top 56.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpydrive2no fix listedGHSA-v5f6-hjmf-9mc5
PyPIpydrive21.16.2GHSA-v5f6-hjmf-9mc5
PyPIpydrive21.16.2PYSEC-2023-291
Ubuntu:24.04:LTSpydrive2no fix listedUBUNTU-CVE-2023-49297
Ubuntu:25.10pydrive2no fix listedUBUNTU-CVE-2023-49297

Affected products (as reported)

VendorProductVersions
iterative PyDrive2 < 1.16.2= 1.17.0

Weakness: CWE-502 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

References