PT-2023-31157

CVE-2023-49297

·

Published

2023-12-05

·

Updated

2026-10-04

Description by

CVSS 3.1
3.3
Low
MetricsAV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions PyDrive2 versions prior to 1.16.2
Description PyDrive2 is a wrapper library of google-api-python-client that simplifies many common Google Drive API V2 tasks. Unsafe YAML deserialization 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 deserialization 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.
Recommendations For versions prior to 1.16.2, upgrade to release version 1.16.2 to address the issue. As a temporary workaround, consider avoiding the use of LoadSettingsFile or ensuring that no malicious YAML files are present in the same directory as the PyDrive2 execution. Restrict access to the settings.yaml file to minimize the risk of exploitation. Avoid using the CLoader from the yaml library to load user-supplied files until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-V5F6-HJMF-9MC5
OPENSUSE-SU-2024:13493-1
OPENSUSE-SU-2026:12030-1
PYSEC-2023-291
Found an issue in the description? Have something to add? Feel free to write us 👾