PT-2026-50425 · Microtar · Microtar
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
rxi microtar version 0.1.0
Description
A stack-based buffer overflow occurs in the
raw to header() function within src/microtar.c. The function uses strcpy() to copy 100-byte name and linkname fields of a TAR header without ensuring the source is null-terminated. Because the POSIX ustar format allows these fixed-width fields to be fully populated with non-null bytes, a crafted archive where the linkname field and subsequent padding lack a null terminator causes strcpy() to read and write beyond the boundaries of the 512-byte raw header stack buffer. A remote attacker can trigger this by providing a malicious TAR archive to be processed via mtar open(), mtar read header(), or mtar find(), leading to an out-of-bounds read and a stack buffer overflow, which may result in a denial of service or arbitrary code execution.Recommendations
For version 0.1.0, at the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
DoS
Stack Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Microtar