CVE-2026-71267: CWE-121 in rxi microtar
microtar's mtar_write_file_header() and mtar_write_dir_header() functions (src/microtar.c) copy a caller-supplied entry name into the 100-byte `name` field of a stack-allocated mtar_header_t via strcpy(h.name, name), with no check that strlen(name) is less than 100 before the copy. Any application that calls these functions with an externally-influenced filename longer than 99 characters (e.g. when archiving user-supplied or attacker-controlled filenames) triggers a stack buffer overflow.
AI Analysis
Technical Summary
The microtar library's functions mtar_write_file_header() and mtar_write_dir_header() in src/microtar.c use strcpy to copy a caller-supplied entry name into a 100-byte stack-allocated buffer (h.name) without validating that the input length is less than 100 bytes. If an application using microtar archives user-supplied or attacker-controlled filenames longer than 99 characters, this triggers a stack buffer overflow (CWE-121). The vulnerability has a CVSS 3.1 score of 9.8, indicating critical severity with network attack vector, no privileges required, no user interaction, and impacts confidentiality, integrity, and availability.
Potential Impact
Exploitation of this vulnerability can result in a stack buffer overflow, potentially allowing an attacker to execute arbitrary code, crash the application, or cause denial of service. Since the vulnerability is triggered by processing attacker-controlled filenames, any application using microtar to archive untrusted input is at risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, applications should avoid archiving filenames longer than 99 characters or implement input validation to restrict filename length before passing to microtar functions.
CVE-2026-71267: CWE-121 in rxi microtar
Description
microtar's mtar_write_file_header() and mtar_write_dir_header() functions (src/microtar.c) copy a caller-supplied entry name into the 100-byte `name` field of a stack-allocated mtar_header_t via strcpy(h.name, name), with no check that strlen(name) is less than 100 before the copy. Any application that calls these functions with an externally-influenced filename longer than 99 characters (e.g. when archiving user-supplied or attacker-controlled filenames) triggers a stack buffer overflow.
CVSS v3.1
Score 9.8critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The microtar library's functions mtar_write_file_header() and mtar_write_dir_header() in src/microtar.c use strcpy to copy a caller-supplied entry name into a 100-byte stack-allocated buffer (h.name) without validating that the input length is less than 100 bytes. If an application using microtar archives user-supplied or attacker-controlled filenames longer than 99 characters, this triggers a stack buffer overflow (CWE-121). The vulnerability has a CVSS 3.1 score of 9.8, indicating critical severity with network attack vector, no privileges required, no user interaction, and impacts confidentiality, integrity, and availability.
Potential Impact
Exploitation of this vulnerability can result in a stack buffer overflow, potentially allowing an attacker to execute arbitrary code, crash the application, or cause denial of service. Since the vulnerability is triggered by processing attacker-controlled filenames, any application using microtar to archive untrusted input is at risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, applications should avoid archiving filenames longer than 99 characters or implement input validation to restrict filename length before passing to microtar functions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.967Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7336e4bf8831d539ed913d
Added to database: 08/05/2026, 13:13:08 UTC
Last enriched: 08/05/2026, 13:32:14 UTC
Last updated: 08/06/2026, 00:13:50 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.