Описание
An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution 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).
A vulnerability in apply_substitution() function in libarchive's bsdtar allows crafted -s substitution rules to repeatedly match a zero-length substring and append replacements without advancing the input pointer. When the rule uses the global /g flag (or an explicitly empty pattern), this leads to unbounded output allocation and eventual process OOM (Denial of Service). Upgrade to libarchive 3.8.1 or apply a patch that prevents zero-length match loops or rejects empty patterns.
Отчет
This vulnerability is rated Moderate rather than Important because its impact is limited to availability and requires user interaction under specific, non-default conditions. Exploitation is only possible when an attacker can directly supply or influence the -s substitution rule passed to bsdtar, which is uncommon in most deployment scenarios since bsdtar is typically invoked with trusted command-line arguments in controlled environments. The flaw does not enable memory corruption, arbitrary code execution, or privilege escalation—it solely results in an infinite loop and memory exhaustion (OOM) leading to a process crash.
Меры по смягчению последствий
No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | libarchive | Fix deferred | ||
| Red Hat Enterprise Linux 6 | libarchive | Fix deferred | ||
| Red Hat Enterprise Linux 7 | libarchive | Fix deferred | ||
| Red Hat Enterprise Linux 8 | libarchive | Fix deferred | ||
| Red Hat Enterprise Linux 9 | libarchive | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | rhcos | Fix deferred |
Показывать по
Дополнительная информация
Статус:
EPSS
5.5 Medium
CVSS3
Связанные уязвимости
An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution 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).
An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution 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).
An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution 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).
An issue was discovered in libarchive bsdtar before version 3.8.1 in f ...
An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution 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).
EPSS
5.5 Medium
CVSS3