CVE-2026-43623
JSON

8.7high

microtar 0.1.0 Stack-Based Buffer Overflow via raw_to_header()

Severity
8.7high CVSS:4.0 by VulnCheck
Exploit likelihood
0.49% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

microtar through 0.1.0 contains a stack-based buffer overflow vulnerability in the raw_to_header() function in src/microtar.c that allows attackers to corrupt adjacent stack memory by supplying a crafted TAR archive with non-null-terminated name or linkname fields. The function uses strcpy() to copy 100-byte ustar format fields that lack null terminators, causing writes of up to 355 bytes into a 100-byte destination buffer when mtar_open(), mtar_find(), or mtar_read_header() process attacker-supplied TAR archives.

Affected

Product or packageVersionsReported by
rxi microtarup to 0.1.0CVE List

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-121

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

microtar through 0.1.0 contains a stack-based buffer overflow vulnerability in the raw_to_header() function in src/microtar.c that allows attackers to corrupt adjacent stack memory by supplying a crafted TAR archive with non-null-terminated name or linkname fields. The function uses strcpy() to copy 100-byte ustar format fields that lack null terminators, causing writes of up to 355 bytes into a 100-byte destination buffer when mtar_open(), mtar_find(), or mtar_read_header() process attacker-supplied TAR archives.

NVD (es)

microtar hasta la versión 0.1.0 contiene una vulnerabilidad de desbordamiento de búfer basado en pila en la función raw_to_header() en src/microtar.c que permite a los atacantes corromper la memoria adyacente de la pila al proporcionar un archivo TAR manipulado con campos name o linkname no terminados en nulo. La función utiliza strcpy() para copiar campos de formato ustar de 100 bytes que carecen de terminadores nulos, causando escrituras de hasta 355 bytes en un búfer de destino de 100 bytes cuando mtar_open(), mtar_find() o mtar_read_header() procesan archivos TAR proporcionados por el atacante.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43623 changed 2026-07-14CVE Terms of Use
NVDCVE-2026-43623 changed 2026-07-22Public domain