CVE-2026-55738
JSON

8.7high

Stack Buffer Overflow in rxi/microtar raw_to_header() via non-null-terminated TAR name field

Severity
8.7high CVSS:4.0 by TuranSec
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
TuranSec

Description

A stack-based buffer overflow exists in the raw_to_header function in src/microtar.c in rxi microtar 0.1.0. The function copies the 100-byte name and linkname fields of a TAR header with strcpy without guaranteeing null termination of the source.

Affected

Product or packageVersionsReported by
rxi microtar0.1.0CVE List

All scores

TuranSec8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
TuranSec8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-121CWE-170

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

A stack-based buffer overflow exists in the raw_to_header function in src/microtar.c in rxi microtar 0.1.0. The function copies the 100-byte name and linkname fields of a TAR header with strcpy without guaranteeing null termination of the source.

NVD (es)

Un desbordamiento de búfer basado en pila existe en la función raw_to_header() en src/microtar.c en rxi microtar 0.1.0. La función copia los campos de 100 bytes name y linkname de una cabecera TAR con strcpy() sin garantizar la terminación nula del origen. El formato POSIX ustar permite que estos campos de ancho fijo se rellenen completamente con bytes no nulos, por lo que un archivo manipulado cuyo campo linkname (seguido por el relleno final de la cabecera raw de 512 bytes) no contiene un terminador nulo hace que strcpy() lea más allá del final del búfer de pila de la cabecera raw de 512 bytes y escriba más allá del búfer de cabecera de destino. Un atacante remoto que suministra un archivo TAR manipulado que la víctima abre o analiza (a través de mtar_open(), mtar_read_header() o mtar_find()) puede causar una lectura fuera de límites y un desbordamiento de búfer de pila, lo que resulta en denegación de servicio (caída) y potencialmente ejecución de código arbitrario. Confirmado con AddressSanitizer: desbordamiento de búfer de pila LECTURA de tamaño 356 en raw_to_header en src/microtar.c:112.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-55738 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-55738 changed 2026-10-26Public domain