CVE-2026-71267: microtar Stack Buffer Overflow in mtar_write_file_header() and mtar_write_dir_header()
microtar's mtarwritefileheader() and mtarwritedirheader() functions (src/microtar.c) copy a caller-supplied entry name into the 100-byte name field of a stack-allocated mtarheadert 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-71267?
The severity of CVE-2026-71267 is critical, with a CVSS score of 9.8.
What is CVE-2026-71267?
CVE-2026-71267 is a stack buffer overflow vulnerability in the microtar library's mtar_write_file_header() and mtar_write_dir_header() functions.
How do I fix CVE-2026-71267?
To fix CVE-2026-71267, ensure that input lengths are validated before copying data into the mtar_header_t structure.
What are the implications of CVE-2026-71267?
The implications of CVE-2026-71267 include potential arbitrary code execution due to the buffer overflow.
Which software is affected by CVE-2026-71267?
CVE-2026-71267 affects applications that utilize the microtar library.