CVE-2026-54417

Integer Overflow in rxi/microtar mtar_next() Causes Infinite Loop DoS

Published Jun 17, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An integer overflow occurs in mtar_next() of rxi/microtar 0.1.0, where the function computes the next offset using 32‑bit arithmetic. A malicious tar archive that causes the offset calculation to wrap around makes the program enter an infinite loop, consuming CPU until it is terminated. The flaw is a classic integer overflow (CWE‑190) combined with uncontrolled looping (CWE‑835), resulting in a denial‑of‑service condition.

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. The EPSS score is less than 1 %, suggesting a low probability of exploitation in the wild. It is not listed in CISA KEV. The likely attack vector is remote, via a malicious tar file supplied to a service that uses microtar for extraction. Supply of such a crafted archive causes the function to enter an infinite loop, producing a denial‑of‑service.

Remediation

No solution or workaround provided in the CVE record.

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 August 10, 2026 at 23:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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. 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.
Title rxi microtar - Integer Overflow in mtar_next() Causes Infinite Loop DoS Integer Overflow in rxi/microtar mtar_next() Causes Infinite Loop DoS
Type Values Removed Values Added
Title Integer Overflow in rxi/microtar mtar_next() Causes Infinite Loop DoS rxi microtar - Integer Overflow in mtar_next() Causes Infinite Loop DoS
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'}

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'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 11:44 AM
Reserved
Jun 13, 2026, 4:39 PM
Status
Deferred
Published
Jun 17, 2026, 2:17 PM
Modified
Oct 26, 2026, 11:10 AM