Falhas do tipo CWE-362

1.089 resultados

Condição de corrida

Ocorre quando dois ou mais threads/processos acessam um recurso compartilhado (arquivo, memória, banco de dados) quase simultaneamente, e o resultado final depende da ordem de execução que não é controlada. Se a sincronização falha, um thread pode ler ou modificar dados enquanto outro está no meio da operação, causando inconsistência ou comportamento imprevisto.

Exemplo

Um sistema de autenticação que verifica se um arquivo de token existe (sem estar sincronizado): thread A verifica que o arquivo não existe no instante T1, thread B cria o token no instante T2, mas thread A já passou da verificação e cria um novo token conflitante em T3. O resultado depende do timing, não da lógica.

Como mitigar

Use mecanismos de sincronização (locks, mutexes, operações atômicas) ao acessar recursos compartilhados, ou redesenhe a lógica para evitar compartilhamento (cada thread com seu espaço). Para operações de arquivo, use flags de criação exclusiva (O_EXCL em Unix) em vez de verificar-depois-criar.

CVE-2026-23668HIGHWindows Graphics Component Elevation of Privilege VulnerabilityEPSS 3.6%CVE-2026-4368HIGHRace Condition leading to User Session MixupEPSS 3.6%CVE-2023-32254CRITICALTree connection race condition remote code execution vulnerabilityEPSS 2.9%CVE-2024-7885HIGHUndertow: improper state management in proxy protocol parsing causes information leakageEPSS 2.6%CVE-2023-32250CRITICALSession race condition remote code execution vulnerabilityEPSS 2.6%CVE-2026-21231HIGHWindows Kernel Elevation of Privilege VulnerabilityEPSS 2.6%CVE-2023-32258HIGHSession race condition remote code execution vulnerabilityEPSS 2.5%CVE-2023-32257HIGHSession race condition remote code execution vulnerabilityEPSS 2.4%CVE-2023-6200HIGHKernel: icmpv6 router advertisement packets, aka linux tcp/ip remote code execution vulnerabilityEPSS 2.2%CVE-2021-32686MEDIUMDenial of Service in PJSIPEPSS 2.1%CVE-2023-33170HIGHASP.NET and Visual Studio Security Feature Bypass VulnerabilityEPSS 2.0%CVE-2022-26821MEDIUMWindows DNS Server Remote Code Execution VulnerabilityEPSS 1.9%CVE-2021-32810CRITICALData race in crossbeam-dequeEPSS 1.9%CVE-2025-52434HIGHApache Tomcat: APR/Native Connector crash leading to DoSEPSS 1.9%CVE-2021-43980LOWApache Tomcat: Information disclosureEPSS 1.9%CVE-2017-7543MEDIUMA race-condition flaw was discovered in openstack-neutron before 7.2.0-12.1, 8.x before 8.3.0-11.1, 9.x before 9.3.1-2.1, and 10.x before 10EPSS 1.9%CVE-2021-4203A use-after-free read flaw was found in sock_getsockopt() in net/core/sock.c due to SO_PEERCRED and SO_PEERGROUPS race with listen() (and coEPSS 1.7%CVE-2024-30046MEDIUMVisual Studio Denial of Service VulnerabilityEPSS 1.7%CVE-2020-15707MEDIUMGRUB2 contained integer overflows when handling the initrd command, leading to a heap-based buffer overflow.EPSS 1.6%CVE-2018-10850MEDIUM389-ds-base before versions 1.4.0.10, 1.3.8.3 is vulnerable to a race condition in the way 389-ds-base handles persistent search, resulting EPSS 1.6%