CVE-2026-71267
JSON

9.8critical

microtar Stack Buffer Overflow in mtar_write_file_header() and mtar_write_dir_header()

Severity
9.8critical CVSS:3.1 by TuranSec
Exploit likelihood
0.55% (higher than 40% of CVEs)
Published
Last changed
Assigned by
TuranSec

Description

microtar's mtar_write_file_header and mtar_write_dir_header functions (src/microtar.c) copy a caller-supplied entry name into the 100-byte field of a stack-allocated mtar_header_t via strcpy(h.name, name), with no check that strlen(name) is less than 100 before the copy.

Affected

Product or packageVersionsReported by
rxi microtarup to *CVE List

Classification

CWE-121

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

What each source says

CVE List

microtar's mtar_write_file_header and mtar_write_dir_header functions (src/microtar.c) copy a caller-supplied entry name into the 100-byte field of a stack-allocated mtar_header_t via strcpy(h.name, name), with no check that strlen(name) is less than 100 before the copy.

NVD (es)

Las funciones mtar_write_file_header() y mtar_write_dir_header() de microtar (src/microtar.c) copian un nombre de entrada proporcionado por el llamador en el campo ’name’ de 100 bytes de una mtar_header_t asignada en la pila a través de strcpy(h.name, name), sin verificar que strlen(name) sea menor que 100 antes de la copia. Cualquier aplicación que llame a estas funciones con un nombre de archivo influenciado externamente de más de 99 caracteres (por ejemplo, al archivar nombres de archivo proporcionados por el usuario o controlados por el atacante) desencadena un desbordamiento de búfer de pila.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-71267 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-71267 changed 2026-10-24Public domain