CVE-2026-71267
Received Received - Intake

Buffer Overflow in microtar Due to Unchecked Filename Length

Vulnerability report for CVE-2026-71267, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-05

Last updated on: 2026-08-05

Assigner: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

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 `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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-05
Last Modified
2026-08-05
Generated
2026-08-05
AI Q&A
2026-08-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
rxi microtar *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a stack buffer overflow in microtar's mtar_write_file_header() and mtar_write_dir_header() functions. These functions copy a filename into a 100-byte buffer without checking if the filename exceeds 99 characters. If an attacker provides a filename longer than 99 characters, it overflows the buffer on the stack.

Detection Guidance

Detecting this vulnerability requires checking if your system uses microtar and if the vulnerable functions mtar_write_file_header() or mtar_write_dir_header() are called with filenames longer than 99 characters. Review source code for strcpy(h.name, name) usage in microtar.c. No specific commands are provided in the context.

Impact Analysis

This vulnerability can lead to arbitrary code execution, denial of service, or data corruption. Attackers could exploit it by providing malicious filenames to applications using microtar, potentially gaining control over the affected system.

Compliance Impact

This vulnerability could lead to arbitrary code execution due to stack buffer overflow, potentially exposing sensitive data processed by applications using microtar. This may violate GDPR's integrity and confidentiality requirements or HIPAA's safeguards for protected health information if exploited.

Mitigation Strategies

Immediately update microtar to the latest version if available. If using the library, ensure all filenames passed to mtar_write_file_header() or mtar_write_dir_header() are validated to be under 100 characters. Consider replacing strcpy with strncpy or similar safer functions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-71267. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart