CVE-2023-49297
Python vulnerability analysis and mitigation

Overview

PyDrive2, a wrapper library for google-api-python-client that simplifies Google Drive API V2 tasks, was found to contain a deserialization vulnerability (CVE-2023-49297) discovered in December 2023. The vulnerability affects versions up to and including 1.16.1, with the fix being released in version 1.16.2. This security issue involves unsafe YAML deserialization that could lead to arbitrary code execution (GitHub Advisory).

Technical details

The vulnerability stems from the use of unsafe YAML deserialization in the LoadSettingsFile function. The issue occurs because the library uses CLoader from the yaml library, which is considered unsafe as it allows execution of any Python code contained within the YAML file. The vulnerability is triggered when initializing GoogleAuth while a malicious yaml file is present in the same directory, or when such a file is loaded via LoadSettingsFile. The CVSS v3.1 base score is 7.8 HIGH, with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (GitHub Advisory, NVD).

Impact

The vulnerability allows attackers to execute arbitrary code through a maliciously crafted YAML file. What makes this vulnerability particularly concerning is that it doesn't require the file to be directly loaded through the code - merely having the malicious file present in the same directory as the PyDrive2 application is sufficient to trigger the vulnerability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in PyDrive2 version 1.16.2 by replacing the unsafe CLoader with CSafeLoader. Users are strongly advised to upgrade to version 1.16.2 or later. The fix was implemented in commit c57355dc. There are no known workarounds for this vulnerability other than upgrading to a patched version (GitHub Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
CVE-2026-22219HIGH8.3
  • PythonPython
  • chainlit
NoYesJan 20, 2026
CVE-2026-23842HIGH7.5
  • PythonPython
  • chatterbot
NoYesJan 19, 2026
CVE-2026-23877MEDIUM5.3
  • PythonPython
  • swingmusic
NoYesJan 19, 2026
CVE-2026-23833LOW1.7
  • PythonPython
  • esphome
NoYesJan 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management