REDHAT-BUG-2412648: Medium severity Libarchive bsdtar vulnerability
An issue was discovered in libarchive bsdtar before version 3.8.1 in function applysubstitution in file tar/subst.c when processing crafted -s substitution rules. This can cause unbounded memory allocation and lead to denial of service (Out-of-Memory crash).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libarchive bsdtarto a version that resolves this vulnerability.Fixed in 3.8.1
Event History
Frequently Asked Questions
What input or access does an attacker need to trigger this issue?
The issue is triggered by crafted -s substitution rules processed by bsdtar. The provided data does not establish whether an attacker can supply those rules remotely or whether local command execution is required.
What is the practical impact of successful exploitation?
Processing a crafted substitution rule can cause unbounded memory allocation, leading to an out-of-memory crash and denial of service.
Which versions are affected?
bsdtar versions before 3.8.1 are affected according to the provided information. Update to version 3.8.1 or later when available for your distribution.