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 package | Versions | Reported by |
|---|---|---|
| rxi microtar | 0.1.0 | CVE List |
All scores
| TuranSec | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| TuranSec | 8.7high CVSS:4.0 | CVSS: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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55738 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-55738 changed 2026-10-26 | Public domain |