Description
An integer overflow in the mtar_next() function in src/microtar.c in rxi microtar 0.1.0 allows a remote attacker to cause a denial of service (uncontrolled CPU consumption / infinite loop) via a crafted tar archive. mtar_next() computes the offset to the next record as round_up(h.size, 512) + sizeof(mtar_raw_header_t) using 32-bit arithmetic. When the header size field is a multiple of 512 in the range 0xFFFFFC01-0xFFFFFE00 (e.g. 0xFFFFFE00), the addition wraps to 0, so mtar_next() seeks to the current record position instead of advancing. As a result, mtar_find() and any loop that iterates entries with mtar_next() repeat indefinitely over the same record, hanging the process at 100% CPU with no recovery.
Published: 2026-06-17
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An integer overflow in the mtar_next() function causes the offset calculation to wrap around, resulting in an infinite loop that consumes 100 % CPU. The attacker can trigger this by supplying a crafted tar archive with a header size that is a multiple of 512 in a specific range, making the process hang indefinitely. The weakness is a classic integer overflow (CWE‑190) that manifests as an uncontrolled loop (CWE‑835). The impact is an availability loss through a denial‑of‑service scenario.

Affected Systems

The vulnerable product is rxi/microtar 0.1.0. The integer overflow exists in the src/microtar.c file of this version, affecting any installation that processes tar archives with this library.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity vulnerability. No EPSS value is available, and it is not listed as a Known Exploited Vulnerability by CISA. The likely attack vector is remote, through a malicious tar file supplied to a service that uses microtar for extraction. Once the crafted archive is processed, the function enters an infinite loop, delivering a denial‑of‑service.

Generated by OpenCVE AI on June 18, 2026 at 11:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade microtar to a patched version that removes the integer overflow in mtar_next()
  • If an upgrade is not possible, only process tar archives that originate from trusted sources or implement pre‑processing checks to reject files with header sizes in the vulnerable range
  • Add defensive validation in the code to detect overflow or limit the size of individual entries before the offset calculation

Generated by OpenCVE AI on June 18, 2026 at 11:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 18 Jun 2026 04:45:00 +0000

Type Values Removed Values Added
First Time appeared Rxi
Rxi microtar
Vendors & Products Rxi
Rxi microtar
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 17 Jun 2026 14:00:00 +0000

Type Values Removed Values Added
Description An integer overflow in the mtar_next() function in src/microtar.c in rxi microtar 0.1.0 allows a remote attacker to cause a denial of service (uncontrolled CPU consumption / infinite loop) via a crafted tar archive. mtar_next() computes the offset to the next record as round_up(h.size, 512) + sizeof(mtar_raw_header_t) using 32-bit arithmetic. When the header size field is a multiple of 512 in the range 0xFFFFFC01-0xFFFFFE00 (e.g. 0xFFFFFE00), the addition wraps to 0, so mtar_next() seeks to the current record position instead of advancing. As a result, mtar_find() and any loop that iterates entries with mtar_next() repeat indefinitely over the same record, hanging the process at 100% CPU with no recovery.
Title Integer Overflow in rxi/microtar mtar_next() Causes Infinite Loop DoS
Weaknesses CWE-190
CWE-835
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-06-17T15:01:35.358Z

Reserved: 2026-06-13T16:39:46.122Z

Link: CVE-2026-54417

cve-icon Vulnrichment

Updated: 2026-06-17T15:01:31.811Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-18T11:45:15Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')