CVE-2025-9810
Redis Analisi e mitigazione delle vulnerabilità

Panoramica

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).

Dettagli tecnici

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).

Impatto

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).

Mitigazione e soluzioni alternative

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).

Risorse aggiuntive


FonteQuesto report è stato generato utilizzando l'intelligenza artificiale

Imparentato Redis Vulnerabilità:

CVE ID

Severità

Punteggio

Tecnologie

Nome del componente

Exploit CISA KEV

Ha la correzione

Data di pubblicazione

CVE-2025-49844CRITICAL9.9
  • RedisRedis
  • valkey-rdma
NoOct 03, 2025
CVE-2025-46817CRITICAL9.8
  • RedisRedis
  • valkey-tls-debuginfo
NoOct 03, 2025
CVE-2025-46818HIGH7.3
  • RedisRedis
  • redis-6.2
NoOct 03, 2025
CVE-2025-46819HIGH7.1
  • RedisRedis
  • redict
NoOct 03, 2025
CVE-2025-9810MEDIUM6.8
  • RedisRedis
  • redis:6::redis-devel
NoSep 01, 2025

Valutazione gratuita delle vulnerabilità

Benchmark della tua posizione di sicurezza del cloud

Valuta le tue pratiche di sicurezza cloud in 9 domini di sicurezza per confrontare il tuo livello di rischio e identificare le lacune nelle tue difese.

Richiedi valutazione

Richiedi una demo personalizzata

Pronti a vedere Wiz in azione?

"La migliore esperienza utente che abbia mai visto offre piena visibilità ai carichi di lavoro cloud."
David EstlickCISO (CISO)
"Wiz fornisce un unico pannello di controllo per vedere cosa sta succedendo nei nostri ambienti cloud."
Adam FletcherResponsabile della sicurezza
"Sappiamo che se Wiz identifica qualcosa come critico, in realtà lo è."
Greg PoniatowskiResponsabile della gestione delle minacce e delle vulnerabilità