Falhas do tipo CWE-158

28 resultados

Neutralização inadequada de byte nulo ou caractere NUL

Ocorre quando uma aplicação não trata corretamente o caractere nulo (\0) em strings ou dados de entrada, permitindo que um atacante encerre strings prematuramente ou contorne validações. O código assume que a string termina naturalmente, mas o byte nulo força uma interrupção inesperada, levando a comportamentos não previstos como bypass de filtros, path traversal ou injeção de código.

Exemplo

Um validador verifica se o arquivo tem extensão .txt, mas um atacante envia 'malware.exe\0.txt'. A aplicação valida e aceita (vê '.txt'), mas sistemas de baixo nível interpretam a string como 'malware.exe' (terminada no nulo), executando o executável. Ou um filtro de XSS falha porque o byte nulo quebra a análise da string antes de detectar o payload malicioso.

Como mitigar

Sempre validar e sanitizar entrada do usuário, removendo ou rejeitando bytes nulos explicitamente antes de qualquer processamento. Use APIs seguras de parsing que tratam nulos como inválidos, implemente whitelist rigorosa de caracteres permitidos e teste casos extremos como strings com nulos inseridos no meio ou fim.

CVE-2025-47812CRITICALIn Wing FTP Server before 7.4.4. the user and admin web interfaces mishandle '\0' bytes, ultimately allowing injection of arbitrary Lua codeEPSS 95.3%KEVCVE-2009-1537HIGHUnspecified vulnerability in the QuickTime Movie Parser Filter in quartz.dll in DirectShow in Microsoft DirectX 7.0 through 9.0c on Windows EPSS 51.2%KEVCVE-2022-20812CRITICALCisco Expressway Series and Cisco TelePresence Video Communication Server VulnerabilitiesEPSS 1.8%CVE-2020-14500CRITICALIMPROPER NEUTRALIZATION OF NULL BYTE OR NUL CHARACTER CWE-158EPSS 1.7%CVE-2020-7928MEDIUMImproper neutralization of null byte leads to read overrunEPSS 1.4%CVE-2022-20813CRITICALCisco Expressway Series and Cisco TelePresence Video Communication Server VulnerabilitiesEPSS 1.1%CVE-2025-9648HIGHDenial of Service in CivetWebEPSS 0.7%CVE-2024-10921MEDIUMImproper neutralization of null bytes may lead to buffer over-reads in MongoDB ServerEPSS 0.5%CVE-2026-23863MEDIUMAn attachment spoofing issue in WhatsApp for Windows prior to v2.3000.1032164386.258709 could have allowed maliciously formatted documents wEPSS 0.5%CVE-2023-5719HIGHRed Lion Crimson Improper Neutralization of Null Byte or NUL CharacterEPSS 0.5%CVE-2024-9026LOWPHP-FPM logs from children may be alteredEPSS 0.5%CVE-2025-1936HIGHAdding %00 and a fake extension to a jar: URL changed the interpretation of the contentsEPSS 0.4%CVE-2025-14388CRITICALPhastPress <= 3.7 - Unauthenticated Arbitrary File Read via Null Byte InjectionEPSS 0.4%CVE-2025-66263HIGHUnauthenticated Arbitrary File Read via Null Byte InjectionEPSS 0.4%CVE-2026-33191HIGHfree5GC UDM vulnerable to null byte injection in URL path parameters causing 500 Internal Server ErrorEPSS 0.4%CVE-2020-5363HIGHSelect Dell Client Consumer and Commercial platforms include an issue that allows the BIOS Admin password to be changed through Dell's managEPSS 0.3%CVE-2024-0408MEDIUMXorg-x11-server: selinux unlabeled glx pbufferEPSS 0.3%CVE-2025-55113CRITICALBMC Control-M/Agent unescaped NULL byte in access control list checksEPSS 0.3%CVE-2026-4359LOWHeap-buffer-over-read in _mongoc_http_send via strstr on non-null-terminated bufferEPSS 0.2%CVE-2022-31223LOWDell BIOS versions contain an Improper Neutralization of Null Byte vulnerability. A local authenticated administrator user could potentiallyEPSS 0.2%