Weaknesses of type CWE-821

14 results

Sincronização incorreta entre threads

Ocorre quando múltiplas threads acessam e modificam dados compartilhados sem mecanismos adequados de sincronização (locks, mutexes, semáforos). Isso causa race conditions: o resultado depende da ordem aleatória de execução das threads, levando a corrupção de dados, comportamento imprevisível ou falhas de segurança.

Example

Um contador global é incrementado por duas threads simultaneamente sem lock. Thread A lê o valor 5, Thread B lê 5, Thread A escreve 6, Thread B escreve 6 — resultado final é 6 em vez de 7. Em código de autenticação, isso pode permitir bypass de validações ou acesso não autorizado.

How to mitigate

Use primitivas de sincronização nativas da linguagem (Mutex em Rust, synchronized/volatile em Java, locks em Python) para proteger acesso a dados compartilhados. Evite compartilhamento desnecessário de estado mutável entre threads e prefira estruturas thread-safe quando possível.

CVE-2022-1931CRITICALIncorrect Synchronization in polonel/trudeskEPSS 2.1%CVE-2024-1739HIGHCase Insensitive Email Address Validation Vulnerability in lunary-ai/lunaryEPSS 0.6%CVE-2026-43198CRITICALtcp: fix potential race in tcp_v6_syn_recv_sock()EPSS 0.4%CVE-2024-1902HIGHSession Reuse Vulnerability in lunary-ai/lunaryEPSS 0.4%CVE-2024-5755MEDIUMEmail Validation Bypass in lunary-ai/lunaryEPSS 0.3%CVE-2024-58132MEDIUMIn chainmaker-go (aka ChainMaker) before 2.3.6, multiple updates to a single node's configuration can cause other normal nodes to perform coEPSS 0.3%CVE-2024-58133MEDIUMIn chainmaker-go (aka ChainMaker) before 2.4.0, when making frequent updates to a node's configuration file and restarting this node, concurEPSS 0.3%CVE-2024-58131MEDIUMFISCO BCOS 3.11.0 has an issue with synchronization of the transaction pool that can, for example, be observed when a malicious node (that hEPSS 0.3%CVE-2026-77584HIGHTor before 0.4.9.10 did not reject a CONFLUX_LINK cell that arrives on a circuit which already has attached streams. A malicious client coulEPSS 0.3%CVE-2024-4278MEDIUMIncorrect Synchronization in GitLabEPSS 0.2%CVE-2023-5088MEDIUMQemu: improper ide controller reset can lead to mbr overwriteEPSS 0.2%CVE-2026-21919HIGHJunos OS and Junos OS Evolved: A high frequency of connecting and disconnecting NETCONF sessions causes management unavailabilityEPSS 0.2%CVE-2024-6657MEDIUMBLE peripheral DoS after few cycles of connect/disconnectsEPSS 0.2%CVE-2026-56132MEDIUMIn libexpat before 2.8.2, there is a heap-based buffer overflow in doProlog in xmlparse.c because scaffold backing array reallocation is misEPSS 0.1%