Falhas do tipo CWE-170

66 resultados

Terminação inadequada com null em strings

A fraqueza ocorre quando uma string ou buffer não é finalizado corretamente com o caractere nulo ('\0'), esperado pelas funções padrão C/C++. Funções como strcpy(), strlen() ou printf() dependem desse terminador para saber onde a string termina; sem ele, elas leem além dos limites do buffer, causando vazamento de informação, corrupção de memória ou crash.

Exemplo

Um código copia dados de entrada para um buffer com strncpy(dst, src, size) sem garantir que dst[size] = '\0' depois, ou usa memcpy() para preencher um buffer e depois passa o resultado a strlen(), que segue lendo lixo em memória até encontrar um null por acaso ou causar segmentation fault.

Como mitigar

Sempre finalize strings com null explicitamente após operações de cópia ou manipulação de buffers; prefira funções seguras como strlcpy(), snprintf() ou APIs de linguagens mais modernas que gerenciam terminação automaticamente; valide o tamanho de dados de entrada antes de copiá-los.

CVE-2025-2026HIGHThe NPort 6100-G2/6200-G2 Series is affected by a high-severity vulnerability (CVE-2025-2026) that allows remote attackers to execute a nullEPSS 0.4%CVE-2026-55738HIGHStack Buffer Overflow in rxi/microtar raw_to_header() via non-null-terminated TAR name fieldEPSS 0.4%CVE-2026-96860MEDIUMWindows USB Print Driver Information Disclosure VulnerabilityEPSS 0.4%CVE-2025-62792MEDIUMWazuh vulnerable to Heap-based Buffer Over-read in w_expression_matchEPSS 0.4%CVE-2026-114457LOWMod_qos: missing nul termination in json value escaping permits out-of-bounds readsEPSS 0.4%CVE-2026-83781HIGHWindows Program Compatibility Assistant Service Elevation of Privilege VulnerabilityEPSS 0.4%CVE-2024-31197MEDIUMImproper Null Termination in libfluid_msg libraryEPSS 0.3%CVE-2025-67790CRITICALAn issue was discovered in DriveLock 24.1 before 24.1.6, 24.2 before 24.2.7, and 25.1 before 25.1.5. An unprivileged user could cause occasiEPSS 0.3%CVE-2024-45288HIGHMultiple vulnerabilities in libnvEPSS 0.3%CVE-2026-24852MEDIUMiccDEV has a heap-buffer-overflow in icXmlParseTextString()EPSS 0.3%CVE-2026-33948LOWjq: Embedded-NUL Truncation in CLI JSON Input Path Causes Prefix-Only Validation of Malformed InputEPSS 0.3%CVE-2026-73324MEDIUMVLC media player 3.0.0 through 3.0.23 information disclosure vulnerabilityEPSS 0.2%CVE-2026-32837MEDIUMmackron / miniaudio Out-of-Bounds Read in BEXT Coding History ParsingEPSS 0.2%CVE-2021-1120HIGHNVIDIA vGPU software contains a vulnerability in the Virtual GPU Manager (vGPU plugin), where a string provided by the guest OS may not be pEPSS 0.2%CVE-2026-27692HIGHiccDEV has HBO in CIccTagTextDescription::Release()EPSS 0.2%CVE-2026-40334LOWlibgphoto2 missing null termination in ptp_unpack_Canon_FE() filename buffer in ptp-pack.cEPSS 0.2%CVE-2026-23749LOWGolioth Firmware SDK < 0.22.0 Blockwise Transfer Path Out-of-Bounds ReadEPSS 0.2%CVE-2026-63860HIGHRDMA/core: Prefer NLA_NUL_STRINGEPSS 0.2%CVE-2025-66220MEDIUMEnvoy’s TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byteEPSS 0.2%CVE-2026-34464HIGHSandboxie-Plus NamedPipeServer OpenHandler stack overflow via unterminated server fieldEPSS 0.2%