BIT-python-2021-29921: Critical severity Python Software Foundation Python vulnerability
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Python's ipaddress library for IP-address-based access control may be exposed if they process address strings containing octets with leading zeroes. The issue affects Python versions before 3.9.5.
What does an attacker need to exploit it?
An attacker needs to provide an IP address string with leading zero characters in one or more octets in a situation where the application relies on IP address parsing for access-control decisions. No authentication or user interaction is indicated by the provided severity vector.
What is the practical impact?
An attacker may bypass access controls that are based on IP addresses. The supplied severity vector rates confidentiality, integrity, and availability impact as high.