CVE-2023-49297 json
Unsafe YAML deserialization in PyDrive2
published 2023-12-05 2 y ago modified 2026-09-10 1 mo ago also GHSA-v5f6-hjmf-9mc5 , PYSEC-2023-291 , EUVD-2023-0292
- cvss
- 3.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pydrive2 1.16.2
- iterative pydrive2 1.16.2
- python-pydrive2 openSUSE Tumbleweed 1.18.1-2.4
opensuse advisories openSUSE-SU-2026:12030-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-49297 updated cvss 3.3
pydrive2: potential arbitrary code execution via unsafe YAML deserilization
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/iterative/PyDrive2/security/advisories/GHSA-v5f6-hjmf-9mc5 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pydrive2 | 1 listed version <1.16.2 |
1.16.2 |
Affected products
- iterative PyDrive2
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/iterative/PyDrive2/commit/c57355dc2033ad90b7050d681b2c3ba548ff0004
web, patch
-
github.com
/iterative/PyDrive2/security/advisories/GHSA-v5f6-hjmf-9mc5
web, exploit, vendor-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW/
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-49297
advisory
-
github.com
/iterative/PyDrive2
package
-
github.com
/pypa/advisory-database/tree/main/vulns/pydrive2/PYSEC-2023-291.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/CYR5SJKOFSSXFV3E3D2SLXBUBA5WMJJG
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/K34YWTDKBAYWZPOAKBYDM72WIFL5CAYW
web
Sources
- CVE List CVE-2023-49297
- GitHub Advisory GHSA-v5f6-hjmf-9mc5
- NVD CVE-2023-49297
- OSV PYSEC-2023-291
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.