VDB

CVE-2023-49297

CVE-2023-49297 PUBLISHED CVSS 3.3 LOW

Unsafe YAML deserialization in PyDrive2

Reported by github_m · Published December 5, 2023

pydrive2 is fixed in 1.16.2 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
pydrive2PyPI1.16.2
pydrive2iterative1.16.2

Risk scores

CVSS 3.1
3.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Affected products

VendorProductVersions
iterativePyDrive2< 1.16.2, = 1.17.0
iterativePyDrive20, 1.17.0
PyPIPyDrive21.17.0, 0

Timeline

  • Dec 5, 2023 CVE Published
  • Dec 6, 2023 EPSS Score (30 in total, the first dated here)
  • Dec 24, 2023 PoC Published
  • Nov 21, 2024 CVE Updated
  • Jan 27, 2026 Security Advisory
  • Jul 31, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-49297
vulnetix vdb fixes CVE-2023-49297

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-49297/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›