Skip to content

Commit 1204dfc

Browse files
miss-islingtonambv
andauthored
bpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824)
(cherry picked from commit 0fd66e46b2f472d0d206a185dc8892f4f0347cb6) Co-authored-by: Łukasz Langa <[email protected]>
1 parent fc6ad05 commit 1204dfc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Doc/library/ipaddress.rst

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ write code that handles both IP versions correctly. Address objects are
132132
The above change was also included in Python 3.9 starting with
133133
version 3.9.5.
134134

135+
.. versionchanged:: 3.8.12
136+
137+
The above change was also included in Python 3.8 starting with
138+
version 3.8.12.
139+
135140
.. attribute:: version
136141

137142
The appropriate version number: ``4`` for IPv4, ``6`` for IPv6.

Doc/whatsnew/3.8.rst

+13
Original file line numberDiff line numberDiff line change
@@ -2248,3 +2248,16 @@ separator key, with ``&`` as the default. This change also affects
22482248
functions internally. For more details, please see their respective
22492249
documentation.
22502250
(Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin in :issue:`42967`.)
2251+
2252+
Notable changes in Python 3.8.12
2253+
================================
2254+
2255+
Starting with Python 3.8.12 the :mod:`ipaddress` module no longer accepts
2256+
any leading zeros in IPv4 address strings. Leading zeros are ambiguous and
2257+
interpreted as octal notation by some libraries. For example the legacy
2258+
function :func:`socket.inet_aton` treats leading zeros as octal notation.
2259+
glibc implementation of modern :func:`~socket.inet_pton` does not accept
2260+
any leading zeros.
2261+
2262+
(Originally contributed by Christian Heimes in :issue:`36384`, and backported
2263+
to 3.8 by Achraf Merzouki.)

0 commit comments

Comments
 (0)