CVE-2025-9810
Redis Análise e mitigação de vulnerabilidades

Visão geral

A Time-of-Check-Time-of-Use (TOCTOU) vulnerability was discovered in the linenoiseHistorySave function of linenoise library, identified as CVE-2025-9810. The vulnerability was discovered on September 1, 2025, and allows local attackers to overwrite arbitrary files and change permissions through a symlink race condition between fopen("w") and chmod() operations on the history path (NVD, AttackerKB).

Detalhes técnicos

The vulnerability exists in the linenoiseHistorySave function where a race condition occurs between two file operations: fopen() with write mode and subsequent chmod() on the same file path. The vulnerability has been assigned a CVSS v3.1 base score of 6.8 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L. The issue is classified as CWE-367 (Time-of-check Time-of-use Race Condition) (NVD).

Impacto

The vulnerability can lead to several security implications including arbitrary file overwrite with process privileges, unintended permission changes on unrelated files, and history file confidentiality bypass. The impact is particularly concerning for applications that integrate linenoise as a dependency, such as redis-cli (GitHub PR).

Mitigação e soluções alternativas

A fix has been proposed that replaces the chmod() call with fchmod() using the opened file descriptor, which eliminates the TOCTOU condition. The fix was identified using CodeQL's race condition detection rule (GitHub PR).

Recursos adicionais


OrigemEste relatório foi gerado usando IA

Relacionado Redis Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

CVE-2025-49844CRITICAL9.9
  • RedisRedis
  • redis-8.0
NãoSimOct 03, 2025
CVE-2025-46817CRITICAL9.8
  • RedisRedis
  • redis-7.4
NãoSimOct 03, 2025
CVE-2025-46818HIGH7.3
  • RedisRedis
  • redis6-doc
NãoSimOct 03, 2025
CVE-2025-46819HIGH7.1
  • RedisRedis
  • cpe:2.3:a:redis:redis
NãoSimOct 03, 2025
CVE-2025-9810MEDIUM6.8
  • RedisRedis
  • linenoise
NãoSimSep 01, 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