Skip to content

CVE-2024-6923 Email header injection due to unquoted newlines

MediumCVSS 5.5 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known

Description

There is a MEDIUM severity vulnerability affecting CPython.

The
email module didn’t properly quote newlines for email headers when
serializing an email message allowing for header injection when an email
is serialized.

Affected products

ProductAffected versionsFixed in
Microsoft azure linux < 3.12.3-3 3.12.3-3
Microsoft cbl mariner < 3.9.19-8 3.9.19-8
debian/pypy3(Debian:12) All versions No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u1 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u2 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u3 No fix listed
debian/pypy3(Debian:12) = 7.3.12+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.12~rc1+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.12~rc2+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.13+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.14+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.15+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.16+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.16+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.18+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.18+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.19+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.19+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-3 No fix listed
Show 38 more
ProductAffected versionsFixed in
debian/pypy3(Debian:12) = 7.3.20+dfsg-4 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-4 No fix listed
debian/pypy3(Debian:12) = 7.3.22+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.23+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.23+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 8.0.0+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 8.0.1+dfsg-1 No fix listed
debian/pypy3(Debian:13) < 7.3.18+dfsg-1 7.3.18+dfsg-1
debian/pypy3(Debian:14) < 7.3.18+dfsg-1 7.3.18+dfsg-1
debian/python3.11(Debian:12) < 3.11.2-6+deb12u5 3.11.2-6+deb12u5
debian/python3.11(Debian:12) = 3.11.2-6 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u1 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u2 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u3 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u4 No fix listed
debian/python3.13(Debian:13) < 3.13.0~rc2-1 3.13.0~rc2-1
ubuntu/python2.7(Ubuntu:22.04) < 2.7.18-13ubuntu1.3 2.7.18-13ubuntu1.3
ubuntu/python3.10(Ubuntu:22.04) < 3.10.12-1~22.04.6 3.10.12-1~22.04.6
ubuntu/python3.11(Ubuntu:22.04) All versions No fix listed
Python Software Foundation CPython < 3.8.20 3.8.20
Python Software Foundation CPython >= 3.9.0, < 3.9.20 3.9.20
Python Software Foundation CPython >= 3.10.0, < 3.10.15 3.10.15
Python Software Foundation CPython >= 3.11.0, < 3.11.10 3.11.10
Python Software Foundation CPython >= 3.12.0, < 3.12.5 3.12.5
Python Software Foundation CPython >= 3.13.0a1, < 3.13.0rc2 3.13.0rc2
python cpython <= 3.13.0rc2 No fix listed
alpine/python3(Alpine:v3.17) < 3.10.15-r0 3.10.15-r0
alpine/python3(Alpine:v3.18) < 3.11.10-r0 3.11.10-r0
alpine/python3(Alpine:v3.19) < 3.11.10-r0 3.11.10-r0
alpine/python3(Alpine:v3.20) < 3.12.6-r0 3.12.6-r0
alpine/python3(Alpine:v3.21) < 3.12.5-r0 3.12.5-r0
alpine/python3(Alpine:v3.22) < 3.12.5-r0 3.12.5-r0
alpine/python3(Alpine:v3.23) < 3.12.5-r0 3.12.5-r0
alpine/python3(Alpine:v3.24) < 3.12.5-r0 3.12.5-r0
ubuntu/python3.12(Ubuntu:24.04) < 3.12.3-1ubuntu0.2 3.12.3-1ubuntu0.2

References