Python2.7: The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers
Affects python2.7Source GCVE Database
Not known to be exploited · CVSS 6.0 Medium · fixed in 3.10.12-1~22.04.16 : update python2.7 when convenient.
Data as of 17 Nov 2026, 20:35 UTC
- Patch
- Available – fixed in 3.10.12-1~22.04.16, 3.12.3-1ubuntu0.15, 3.14.3-1
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Upgrade the Ubuntu to 3.10.12-1~22.04.16 (python3.10 package) or 3.12.3-1ubuntu0.15 (python3.12 package) or 3.14.3-1 (python3.14 package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpypy3pkg:deb/ubuntu/pypy3?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpython3.14pkg:deb/ubuntu/python3.14?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.13pkg:deb/ubuntu/python3.13?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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".
References
- ubuntu.com/security/CVE-2026-1299 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-1299 (opens in a new tab)
- github.com/python/cpython/pull/144126 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/6ZZULGALJTITEAGEXLDJE2C6FORDXPBT/ (opens in a new tab)
- ubuntu.com/security/notices/USN-8509-1 (opens in a new tab)