CVE-2026-55738

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.
Configurations

No configuration.

History

26 Oct 2026, 12:10

Type Values Removed Values Added
Summary
  • (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.

10 Aug 2026, 12:17

Type Values Removed Values Added
Summary (en) 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. The POSIX ustar format permits these fixed-width fields to be fully populated with non-null bytes, so a crafted archive whose linkname field (followed by the trailing padding of the 512-byte raw header) contains no null terminator causes strcpy() to read past the end of the 512-byte raw header stack buffer and to write past the destination header buffer. A remote attacker who supplies a crafted TAR archive that the victim opens or parses (via mtar_open(), mtar_read_header(), or mtar_find()) can cause an out-of-bounds read and a stack buffer overflow, resulting in denial of service (crash) and potentially arbitrary code execution. Confirmed with AddressSanitizer: stack-buffer-overflow READ of size 356 in raw_to_header at src/microtar.c:112. (en) 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.

17 Jun 2026, 17:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-17 14:18

Updated : 2026-10-26 12:10


NVD link : CVE-2026-55738

Mitre link : CVE-2026-55738

CVE.ORG link : CVE-2026-55738


JSON object : View

Products Affected

No product.

CWE
CWE-121

Stack-based Buffer Overflow

CWE-170

Improper Null Termination