CVE Catalog

CVE-2026-71267

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Summary

The mtar_write_file_header() and mtar_write_dir_header() functions in microtar use strcpy() to copy a filename into the 100-byte name field without length checks. If the filename is longer than 99 characters, a stack buffer overflow occurs.

Risk Assessment

The buffer overflow can lead to program crashes or remote code execution if filenames are user-controlled. This may compromise system integrity and data confidentiality.

Recommendation

Update the microtar library to a patched version or use safe bounded copy functions like strncpy().

Original NVD description (English source)

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 `name` 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. Any application that calls these functions with an externally-influenced filename longer than 99 characters (e.g. when archiving user-supplied or attacker-controlled filenames) triggers a stack buffer overflow.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS