CVE-2026-54417: Integer Overflow in rxi microtar Causes Denial of Service
A flaw in the rxi microtar library version 0.1.0 allows an attacker to send a specially crafted tar archive that causes applications processing it to hang indefinitely at high CPU usage. The vulnerability stems from how the library calculates offsets when reading tar records; specific file sizes trigger integer overflow, causing the parser to loop over the same record repeatedly instead of advancing through the archive. Any tool or service that uses this library to extract or list tar files becomes vulnerable to denial of service.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-190, CWE-835
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-17 / 2026-06-17
NVD description (verbatim)
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.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-54417 is an integer overflow vulnerability in the mtar_next() function within rxi microtar's src/microtar.c. The function computes the offset to the next tar record using the formula round_up(h.size, 512) + sizeof(mtar_raw_header_t) with 32-bit unsigned integer arithmetic. When h.size is a multiple of 512 and falls within the range 0xFFFFFC01–0xFFFFFE00 (such as 0xFFFFFE00), the addition overflows and wraps to zero. This causes mtar_next() to return the current record's position rather than advance to the next one. Consequently, mtar_find() and any loop iterating through archive entries stall indefinitely on the same record, consuming 100% CPU with no automatic recovery mechanism.
Business impact
Organizations deploying microtar 0.1.0 in archive processing pipelines face availability risk. This includes backup utilities, container image extraction tools, deployment automation, and any microservice that parses untrusted tar archives. An attacker can trigger a denial of service by uploading or serving a malicious tar file, causing the affected process to hang and exhaust CPU resources. This may cascade to service degradation, failed deployments, or denial of legitimate users. The vulnerability requires no authentication or user interaction, making it suitable for remote exploitation.
Affected systems
The vulnerability affects rxi microtar version 0.1.0. Applications and libraries that bundle or depend on this version are in scope. This includes but is not limited to embedded systems, IoT devices, containerized applications, and any software that processes tar archives as part of normal operation. Organizations should audit their dependency trees and build manifests to identify affected components. Versions prior to 0.1.0 or subsequent patches (if released) may not be vulnerable; verify against the vendor advisory or check the latest microtar repository status.
Exploitability
Exploitability is straightforward. The attack requires only crafting a tar archive with specific header sizes and delivering it to an application that uses the vulnerable library. No special privileges, authentication, or user interaction is needed. The attack surface is broad for any networked service that accepts tar files: cloud storage integration endpoints, CI/CD systems, container registries, and backup services. The barrier to weaponization is low; proof-of-concept archive generation is trivial once the integer overflow conditions are understood.
Remediation
Upgrade rxi microtar to a patched version released after this vulnerability's publication. If no patch is available from the upstream project, consider isolating tar processing to a sandboxed subprocess with resource limits (CPU, memory, timeout), or implement input validation to reject tar headers with suspicious size values before parsing. Long-term, replace microtar with a more actively maintained tar library if the rxi project remains unmaintained. Test all patches thoroughly in non-production environments before deployment.
Patch guidance
Consult the rxi microtar project's official repository and release notes for a patched version. Apply the patch to all systems and applications using microtar 0.1.0, including embedded devices, container images, and compiled binaries. Verify the patched version by checking the mtar_next() function logic and running test cases with the malicious tar archive sizes mentioned in the CVE description (e.g., 0xFFFFFE00). Where in-place patching is not feasible (e.g., firmware or read-only deployments), prepare a rollout plan with rollback procedures. Prioritize systems exposed to untrusted tar input.
Detection guidance
Monitor for processes consuming sustained high CPU while performing tar archive operations. Log and alert on unusual mtar_next() call patterns or loops that process the same tar record repeatedly. Implement network-level detection for tar archives with header sizes in the overflow range (0xFFFFFC01–0xFFFFFE00). If possible, add instrumentation to tar processing functions to detect when offset calculations produce zero or wrap values. Capture and retain samples of uploaded or received tar files for forensic analysis if a denial of service event occurs.
Why prioritize this
This vulnerability scores 7.5 CVSS (HIGH) due to remote exploitability, no authentication requirement, and direct availability impact. Although it does not enable code execution or data theft, the guaranteed denial of service and ease of exploitation make it a credible threat to service continuity. Organizations running microtar in production or as a dependency in web services, automation tools, or cloud infrastructure should prioritize patching. The low effort required to craft a malicious tar file elevates practical risk despite the absence of KEV status or known active exploitation.
Risk score, explained
The CVSS 3.1 score of 7.5 reflects: Attack Vector Network (AV:N) — remote delivery via tar file; Attack Complexity Low (AC:L) — no special conditions needed; Privileges Required None (PR:N) — unauthenticated access; User Interaction None (UI:N) — automatic trigger upon archive processing; Scope Unchanged (S:U) — impact confined to affected process; Confidentiality None (C:N); Integrity None (I:N); Availability High (A:H) — uncontrolled CPU consumption and process hang. The score reflects legitimate concern for availability but acknowledges the absence of confidentiality or integrity compromise.
Frequently asked questions
How does the integer overflow happen in mtar_next()?
The function calculates the next tar record's offset using 32-bit unsigned arithmetic: round_up(h.size, 512) + sizeof(mtar_raw_header_t). When h.size is in the range 0xFFFFFC01–0xFFFFFE00 (all multiples of 512), adding the header size causes the sum to exceed 0xFFFFFFFF and wrap back to zero. This tricks the parser into seeking to the current record instead of advancing, creating an infinite loop.
Can this vulnerability lead to code execution?
No. This vulnerability causes only denial of service through CPU exhaustion and process hang. It does not enable code execution, memory corruption, or data exfiltration. The impact is strictly availability-focused.
Do I need to update if I'm only reading small or trusted tar files?
If your application processes only internally generated or strictly validated tar archives with sizes outside the vulnerable range, immediate risk is lower. However, relying solely on trust is risky in environments where files may be user-supplied, cached, or processed in pipelines. Patching remains the safest course of action.
What if the upstream rxi project doesn't release a patch?
If the project remains unmaintained, implement compensating controls: wrap tar processing in a subprocess with CPU and timeout limits, validate header sizes before parsing, or migrate to an actively maintained tar library. Document the risk and include it in your vulnerability management plan.
This analysis is provided for informational purposes and reflects the vulnerability details available as of the published date. Patch availability, vendor advisories, and affected product versions should be verified against official sources. SEC.co makes no warranty regarding the completeness or accuracy of derivative information. Organizations should conduct their own risk assessment and testing before applying any remediation. No exploit code or weaponization details are included; this document is intended to support defensive decision-making only. Source: NVD (public-domain), retrieved 2026-07-26. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2023-29146HIGHInteger Overflow in Malwarebytes EDR 1.0.11 Linux Hash Functions
- CVE-2025-14098HIGHAvira Antivirus Engine Heap Buffer Overflow—Patch Guidance
- CVE-2025-66280HIGHQNAP Integer Overflow Vulnerability: Patch & Risk Assessment
- CVE-2025-71319HIGHimage-size Denial of Service via Malformed JXL/HEIF Images
- CVE-2025-71329HIGHInfinite Loop DoS in image-size Library—Vulnerability Explanation & Patch Guidance
- CVE-2025-71330HIGHDenial of Service in image-size ICNS Parser
- CVE-2026-0095HIGHAndroid Bluetooth Integer Overflow Privilege Escalation
- CVE-2026-0131HIGHAndroid RTP Integer Overflow Privilege Escalation Vulnerability