CVE-2026-71267: microtar Stack Buffer Overflow in mtar_write_file_header() and mtar_write_dir_header()

Published Aug 5, 2026
·
Updated

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

1 affected component
microtar

Event History

Aug 5, 2026
CVE Published
via MITRE·12:26 PM
Data Sourced
via MITRE·12:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:24 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71267?

The severity of CVE-2026-71267 is critical, with a CVSS score of 9.8.

2

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.

3

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.

4

What are the implications of CVE-2026-71267?

The implications of CVE-2026-71267 include potential arbitrary code execution due to the buffer overflow.

5

Which software is affected by CVE-2026-71267?

CVE-2026-71267 affects applications that utilize the microtar library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203