CVE-2025-12060
Python Análise e mitigação de vulnerabilidades

Visão geral

The keras.utils.get_file API in Keras, when used with the extract=True option for tar archives, is vulnerable to a path traversal attack. This vulnerability (CVE-2025-12060) was disclosed in October 2025 and affects Keras versions prior to 3.12. The vulnerability is linked to the underlying Python tarfile weakness (CVE-2025-4517) (NVD).

Detalhes técnicos

The vulnerability stems from the use of Python's tarfile.extractall function without the filter="data" feature. The utility fails to properly validate file paths during archive extraction, which could allow malicious tar archives containing special symlinks to be extracted. The vulnerability has been assigned a CVSS v4.0 Base Score of 8.9 (HIGH) with the vector string CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H (NVD).

Impacto

A remote attacker can craft a malicious tar archive containing special symlinks, which when extracted, allows them to write arbitrary files to any location on the filesystem outside of the intended destination folder. This could potentially lead to system compromise through arbitrary file writes (NVD).

Mitigação e soluções alternativas

Users should upgrade to Keras version 3.12 or later which implements the filter="data" option for tarfile extraction. Note that upgrading Python to a version that fixes CVE-2025-4517 (e.g. Python 3.13.4) alone is not sufficient - Keras must also be upgraded to version 3.12 or later for complete mitigation (Keras PR).

Recursos adicionais


OrigemEste relatório foi gerado usando IA

Relacionado Python Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

CVE-2025-12060HIGH8.9
  • PythonPython
  • py3-keras
NãoSimOct 30, 2025
CVE-2025-6176HIGH7.5
  • PythonPython
  • python-scrapy
NãoNãoOct 31, 2025
CVE-2025-64168HIGH7.1
  • PythonPython
  • agno
NãoSimOct 31, 2025
CVE-2025-63675MEDIUM6.9
  • PythonPython
  • cryptidy
NãoNãoOct 31, 2025
CVE-2025-50736LOW2
  • PythonPython
  • pdf2zh
NãoNãoOct 30, 2025

Avaliação de vulnerabilidade gratuita

Compare sua postura de segurança na nuvem

Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.

Solicitar avaliação

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adão FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades