Skip to main content
CVE-2026-1299VulnerabilityPublished Updated

Python2.7: The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers

Affects python2.7Source GCVE Database

0
Compare
Authoritative record:CVE-2026-1299· Medium 6.0

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

CVSS 4.0 base score
6.0Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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).

Affected software

ProductAffectedFixed in
Ubuntu 26.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=stonkingOther threatsAffected
  • =7.3.20+dfsg-4
  • =7.3.23+dfsg-1ubuntu1
Fixed in–
Ubuntu 26.04 LTSpypy3pkg:deb/ubuntu/pypy3?arch=source&distro=resoluteOther threatsAffected
  • =7.3.20+dfsg-3
  • =7.3.20+dfsg-4
Fixed in–
Ubuntu 26.04 LTSpython3.14pkg:deb/ubuntu/python3.14?arch=source&distro=resoluteOther threatsAffected
  • <3.14.3-1
Fixed in
  • 3.14.3-1
Ubuntu 25.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=questingOther threatsAffected
  • 7.3.19+dfsg-1 – 7.3.20+dfsg-3
4 affected builds
Fixed in–
Ubuntu 25.10python3.13pkg:deb/ubuntu/python3.13?arch=source&distro=questingOther threatsAffected
  • 3.13.3-1 – 3.13.7-1ubuntu0.4
12 affected builds
Fixed in–
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threatsAffected
  • 3.14.0-1 – 3.14.0~rc3-1
10 affected builds
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

Community reviews

Loading reviews…