Live threats

All CVEs / Iterative

CVE-2023-49297Iterative Pydrive2

High 7.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pydrive2.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
iterativepydrive2< 1.16.2
iterativepydrive21.17.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.