CVE-2024-6923
Medium
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.
SeverityMedium
CVSS5.5
Exploit probability—
ProductCPython
PublishedAug 1, 2024
First seenAug 1, 2024
Weakness typeCWE-94Code injection
How to fix
Update
- Python Software Foundation CPython3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5, 3.13.0rc2 or later
Patches
- github.com/python/cpython/pull/122233
- github.com/python/cpython/commit/4766d1200fdf8b6728137aa2927a297e224d5fa7
- github.com/python/cpython/commit/4aaa4259b5a6e664b7316a4d60bdec7ee0f124d0
- github.com/python/cpython/commit/06f28dc236708f72871c64d4bc4b4ea144c50147
- github.com/python/cpython/commit/b158a76ce094897c870fb6b3de62887b7ccc33f1
- github.com/python/cpython/commit/f7be505d137a22528cb0fc004422c0081d5d90e6
- github.com/python/cpython/commit/f7c0f09e69e950cf3c5ada9dbde93898eb975533
- github.com/python/cpython/commit/097633981879b3c9de9a1dd120d3aa585ecc2384
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Python Software Foundation CPython | v < 3.8.20, 3.9.0 ≤ v < 3.9.20, 3.10.0 ≤ v < 3.10.15, 3.11.0 ≤ v < 3.11.10, 3.12.0 ≤ v < 3.12.5, 3.13.0a1 ≤ v < 3.13.0rc2 | 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5, 3.13.0rc2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.