Home » Database

AVID-2026-R1297

Description

Unsafe YAML deserialization in PyDrive2 (CVE-2023-49297)

Details

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.

Reason for inclusion in AVID: CVE-2023-49297 describes unsafe YAML deserialization in PyDrive2 leading to arbitrary code execution when a malicious YAML file is present. PyDrive2 is a Python library commonly used in data handling within AI/ML workflows (e.g., data ingestion from Google Drive); thus this affects software used to build/run AI systems. The vulnerability is a code execution security issue (CWE-502). The CVE entry provides explicit details and a fix commit/release, satisfying sufficient_evidence.

References

Affected or Relevant Artifacts

  • Developer: iterative
  • Deployer: iterative
  • Artifact Details:
TypeName
SystemPyDrive2

Impact

AVID Taxonomy Categorization

  • Risk domains: Security
  • SEP subcategories: S0100: Software Vulnerability
  • Lifecycle stages: L06: Deployment

CVSS

Version3.1
Vector StringCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Base Score3.3
Base Severity🟢 Low
Attack VectorLOCAL
Attack Complexity🟢 Low
Privileges RequiredNONE
User InteractionREQUIRED
ScopeUNCHANGED
Confidentiality Impact🟢 Low
Integrity ImpactNONE
Availability ImpactNONE

CWE

IDDescription
CWE-502CWE-502: Deserialization of Untrusted Data

Other information

  • Report Type: Advisory
  • Credits:
  • Date Reported: 2023-12-05
  • Version: 0.3.3
  • AVID Entry