CVE-2026-1299
Vulnerability Summary
Timeline
Description
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".
CVSS Metrics
- v4.0•MEDIUM•Score: 6CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
- v4.0•MEDIUM•Score: 6CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Trends
Current EPSS score: 0.54%• Percentile: 45%
Techniques & Countermeasures
- CWE-93•Improper Neutralization of CRLF Sequences ('CRLF Injection')
The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
Affected Systems
- chainguard•python-3.10
< 3.10.19-r4
- chainguard•python-3.11
< 3.11.14-r6
- chainguard•python-3.12
< 3.12.12-r5
- chainguard•python-3.13
< 3.13.12-r1
- chainguard•python-3.14
< 3.14.3-r1
- chainguard•python-3.9
all
- wolfi•python-3.10
< 3.10.19-r4
- wolfi•python-3.11
< 3.11.14-r6
- wolfi•python-3.12
< 3.12.12-r5
- wolfi•python-3.13
< 3.13.12-r1
- wolfi•python-3.14
< 3.14.3-r1
- debian•pypy3
all | all | all | < 7.3.21+dfsg-1
- debian•python3.11
< 3.11.2-6+deb12u7
- debian•python3.13
< 3.13.5-2+deb13u1 | < 3.13.12-1
- debian•python3.14
< 3.14.3-1
- debian•python3.9
< 3.9.2-1+deb11u5
- ubuntu•pypy3
all | all | all | all | all
- ubuntu•python2.7
all
- ubuntu•python3.10
< 3.10.12-1~22.04.16
- ubuntu•python3.11
all | all
- ubuntu•python3.12
< 3.12.3-1ubuntu0.15
- ubuntu•python3.13
all
- ubuntu•python3.14
all | < 3.14.3-1
- ubuntu•python3.4
all
- ubuntu•python3.5
all
- ubuntu•python3.6
all
- ubuntu•python3.7
all
- ubuntu•python3.8
all
- ubuntu•python3.9
all
- python software foundation•cpython
< 3.15.0 | ≥ 3.15.0a1, < 3.15.0 | < 3.13.12 | < 3.10.20 | ≥ 3.11.0, < 3.11.15 | ≥ 3.12.0, < 3.12.13 | ≥ 3.13.0, < 3.13.12 | ≥ 3.14.0, < 3.14.3 | ≥ 3.15.0a1, < 3.15.0a6
References (17)
- https://github.com/python/cpython/pull/144126
- https://github.com/python/cpython/issues/144125
- https://cve.org/CVERecord?id=CVE-2024-6923
- https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZULGALJTITEAGEXLDJE2C6FORDXPBT/
- https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc359413
- https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56d8
- https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8cb9
- https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94e4
- https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f36
- https://github.com/python/cpython/commit/e417f05ad77a4c30ddc07f99e90fc0cef43e831a
- https://ubuntu.com/security/CVE-2026-1299
- https://www.cve.org/CVERecord?id=CVE-2026-1299
- https://ubuntu.com/security/notices/USN-8509-1
- https://security-tracker.debian.org/tracker/CVE-2026-1299
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/1xxx/CVE-2026-1299.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-1299
- https://github.com/python/cpython