Bug 2489845 (CVE-2026-55738) - CVE-2026-55738 microtar: microtar: Arbitrary code execution and denial of service via crafted TAR archive
Summary: CVE-2026-55738 microtar: microtar: Arbitrary code execution and denial of ser...
Keywords:
Status: NEW
Alias: CVE-2026-55738
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2490697 2490698
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-17 15:01 UTC by OSIDB Bzimport
Modified: 2026-06-19 09:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-17 15:01:44 UTC
A stack-based buffer overflow exists in the raw_to_header() function in src/microtar.c in rxi microtar 0.1.0. The function copies the 100-byte name and linkname fields of a TAR header with strcpy() without guaranteeing null termination of the source. The POSIX ustar format permits these fixed-width fields to be fully populated with non-null bytes, so a crafted archive whose linkname field (followed by the trailing padding of the 512-byte raw header) contains no null terminator causes strcpy() to read past the end of the 512-byte raw header stack buffer and to write past the destination header buffer. A remote attacker who supplies a crafted TAR archive that the victim opens or parses (via mtar_open(), mtar_read_header(), or mtar_find()) can cause an out-of-bounds read and a stack buffer overflow, resulting in denial of service (crash) and potentially arbitrary code execution. Confirmed with AddressSanitizer: stack-buffer-overflow READ of size 356 in raw_to_header at src/microtar.c:112.


Note You need to log in before you can comment on or make changes to this bug.