CVE-2021-29921 Affecting python39-pyyaml package, versions <0:5.4.1-1.module+el8.5.0+20364+c7fe1181
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ORACLE8-PYTHON39PYYAML-2590807
- published 10 Apr 2022
- disclosed 6 May 2021
Introduced: 6 May 2021
CVE-2021-29921 Open this link in a new tabHow to fix?
Upgrade Oracle:8
python39-pyyaml
to version 0:5.4.1-1.module+el8.5.0+20364+c7fe1181 or higher.
This issue was patched in ELSA-2021-4160
.
NVD Description
Note: Versions mentioned in the description apply only to the upstream python39-pyyaml
package and not the python39-pyyaml
package as distributed by Oracle
.
See How to fix?
for Oracle:8
relevant fixed versions and status.
In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string. This (in some situations) allows attackers to bypass access control that is based on IP addresses.
References
- https://linux.oracle.com/cve/CVE-2021-29921.html
- https://linux.oracle.com/errata/ELSA-2021-4160.html
- https://linux.oracle.com/errata/ELSA-2021-4162.html
- https://bugs.python.org/issue36384
- https://docs.python.org/3/library/ipaddress.html
- https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst
- https://github.com/python/cpython/pull/12577
- https://github.com/python/cpython/pull/25099
- https://github.com/sickcodes
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md
- https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html
- https://security.netapp.com/advisory/ntap-20210622-0003/
- https://sick.codes/sick-2021-014
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.gentoo.org/glsa/202305-02