summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorThomas Dwyer <github@tomd.tel>2023-07-10 23:00:55 (GMT)
committerGitHub <noreply@github.com>2023-07-10 23:00:55 (GMT)
commit18dfbd035775c15533d13a98e56b1d2bf5c65f00 (patch)
tree3da9c6fff33d3c8f5cb7b503e1915a005beaf068 /Doc/whatsnew
parent6782fc050281205734700a1c3e13b123961ed15b (diff)
downloadcpython-18dfbd035775c15533d13a98e56b1d2bf5c65f00.zip
cpython-18dfbd035775c15533d13a98e56b1d2bf5c65f00.tar.gz
cpython-18dfbd035775c15533d13a98e56b1d2bf5c65f00.tar.bz2
gh-102988: Detect email address parsing errors and return empty tuple to indicate the parsing error (old API) (#105127)
Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). This fixes or at least ameliorates CVE-2023-27043. --------- Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index a892f92..766f468 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -570,6 +570,14 @@ dis
:data:`~dis.hasarg` collection instead.
(Contributed by Irit Katriel in :gh:`94216`.)
+email
+-----
+
+* :func:`email.utils.getaddresses` and :func:`email.utils.parseaddr` now return
+ ``('', '')`` 2-tuples in more situations where invalid email addresses are
+ encountered instead of potentially inaccurate values.
+ (Contributed by Thomas Dwyer for :gh:`102988` to ameliorate CVE-2023-27043.)
+
fractions
---------