Описание
A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.
A vulnerability was discovered in the PyYAML library, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.
Отчет
This CVE has already been fixed in RHEL-9 with initial release of PyYaml v5.4-1.
Ansible Tower 3.7 uses affected version of PyYAML 3.12 from RHEL, but the use of load() is specified with a SafeLoader when it is called. So Ansible Tower and Ansible Engine are not affected.
Red Hat Quay, from version 3.4 uses the safe_load function which is not affected by this issue. See [1].
Even though the CVSSv3 for this flaw is 9.8, the Impact has been set to Moderate because PyYAML provides a specific method to deal with untrusted input, which is yaml.safe_load. yaml.safe_load or the SafeLoader loader should be used whenever the input YAML can be modified by a malicious user.
[1] https://github.com/quay/quay/pull/603
Меры по смягчению последствий
Use yaml.safe_load or the SafeLoader loader when you parse untrusted input.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Ansible Tower 3 | python3-PyYAML | Not affected | ||
| Red Hat Ansible Tower 3 | PyYAML | Not affected | ||
| Red Hat Enterprise Linux 6 | PyYAML | Not affected | ||
| Red Hat Enterprise Linux 7 | PyYAML | Not affected | ||
| Red Hat Enterprise Linux 8 | python27:2.7/PyYAML | Not affected | ||
| Red Hat Enterprise Linux 8 | python39:3.9/PyYAML | Not affected | ||
| Red Hat Enterprise Linux 8 | PyYAML | Not affected | ||
| Red Hat Enterprise Linux 9 | PyYAML | Not affected | ||
| Red Hat OpenStack Platform 10 (Newton) | PyYAML | Not affected | ||
| Red Hat OpenStack Platform 13 (Queens) | PyYAML | Not affected |
Показывать по
Дополнительная информация
Статус:
EPSS
9.8 Critical
CVSS3
Связанные уязвимости
A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.
A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.
A vulnerability was discovered in the PyYAML library in versions befor ...
EPSS
9.8 Critical
CVSS3