Untriaged
email BytesGenerator header injection due to unquoted newlines
The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing headers that don't respect email folding rules, the new behavior will reject the incorrectly folded headers in "BytesGenerator".
References
- https://github.com/python/cpython/pull/144126 patch
- https://github.com/python/cpython/issues/144125 issue-tracking
- https://cve.org/CVERecord?id=CVE-2024-6923 related
- https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZUL… vendor-advisory
- https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc3594… patch
- https://github.com/python/cpython/pull/144126 patch
- https://github.com/python/cpython/issues/144125 issue-tracking
- https://cve.org/CVERecord?id=CVE-2024-6923 related
- https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZUL… vendor-advisory
- https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc3594… patch
- https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56… patch
- https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8c… patch
- https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94… patch
- https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f… patch
- https://github.com/python/cpython/pull/144126 patch
- https://github.com/python/cpython/issues/144125 issue-tracking
- https://cve.org/CVERecord?id=CVE-2024-6923 related
- https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZUL… vendor-advisory
- https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc3594… patch
- https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56… patch
- https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8c… patch
- https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94… patch
- https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f… patch
- https://github.com/python/cpython/pull/144126 patch
- https://github.com/python/cpython/issues/144125 issue-tracking
- https://cve.org/CVERecord?id=CVE-2024-6923 related
- https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZUL… vendor-advisory
- https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc3594… patch
- https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56… patch
- https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8c… patch
- https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94… patch
- https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f… patch
- https://github.com/python/cpython/pull/144126 patch
- https://github.com/python/cpython/issues/144125 issue-tracking
- https://cve.org/CVERecord?id=CVE-2024-6923 related
- https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZUL… vendor-advisory
- https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc3594… patch
- https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56… patch
- https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8c… patch
- https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94… patch
- https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f… patch
- https://github.com/python/cpython/commit/e417f05ad77a4c30ddc07f99e90fc0cef43e83… patch
Affected products
CPython
- <3.13.12
- <3.14.3
- <3.15.0a6
- <3.15.0
Matching in nixpkgs
pkgs.haskellPackages.cpython
Bindings for libpython
Package maintainers
-
@sheepforce Phillip Seeber <phillip.seeber@googlemail.com>