PT-2023-31157 · Google · Google-Api-Python-Client

Ejedev

·

Publicado

2023-12-05

·

Atualizado

2023-12-16

·

CVE-2023-49297

CVSS v3.1

3.3

Baixa

VetorAV: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.

Exploit

Correção

Deserialization of Untrusted Data

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2023-49297
GHSA-V5F6-HJMF-9MC5
OPENSUSE-SU-2024:13493-1
PYSEC-2023-291

Produtos afetados

Google-Api-Python-Client