Описание
YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes.
A perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope.
What DESTROY does depends on the classes the process has loaded. With File::Temp::Dir from core Perl, it can delete a directory tree the document names.
A flaw was found in perl-yaml. An attacker can trigger unintended actions, such as arbitrary file deletion, by supplying a specially crafted YAML document. The parser permits untrusted documents to instantiate arbitrary object classes, causing Perl to automatically execute their destructor methods when the objects are cleaned up.
Отчет
This vulnerability is rated as Important severity because parsing untrusted YAML input enables unprivileged attackers to trigger arbitrary object destructors, potentially resulting in high integrity and availability damage such as unintended filesystem deletion. Within Red Hat Enterprise Linux, the blast radius is determined by whether services or scripts accept unvalidated YAML data from external sources. While exploitation requires compatible Perl modules to be loaded in the process context, it poses a direct risk to applications processing user-supplied documents.
Меры по смягчению последствий
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | perl-YAML | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-YAML | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-YAML | Affected | ||
| Red Hat Enterprise Linux 9 | perl-YAML | Not affected | ||
| Red Hat Enterprise Linux 8 | perl-YAML | Fixed | RHSA-2026:93471 | 02.11.2026 |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
7.4 High
CVSS3
Связанные уязвимости
YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes. A perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope. What DESTROY does depends on the classes the process has loaded. With File::Temp::Dir from core Perl, it can delete a directory tree the document names.
YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes. A perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope. What DESTROY does depends on the classes the process has loaded. With File::Temp::Dir from core Perl, it can delete a directory tree the document names.
YAML versions before 1.30 for Perl allow a loaded document to trigger ...
YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes. A perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope. What DESTROY does depends on the classes the process has loaded. With File::Temp::Dir from core Perl, it can delete a directory tree the document names.
EPSS
7.4 High
CVSS3