CVE-2026-0865: Python2.7 · User-controlled header names and values containing newlines can allow injecting HTTP headers
Affects python2.7Source GCVE Database
Not known to be exploited · CVSS 5.9 Medium · fixed in 2.7.6-8ubuntu0.6+esm29 : update python2.7 when convenient.
Data as of 24 Nov 2026, 20:12 UTC
- Patch
- Available – fixed in 2.7.6-8ubuntu0.6+esm29, 3.4.3-1ubuntu1~14.04.7+esm19, 3.5.2-2ubuntu0~16.04.4~14.04.1+esm9 +14
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 20 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 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | 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
|
Ubuntu 24.04 LTSpython3.12pkg:deb/ubuntu/python3.12?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSpython3.10pkg:deb/ubuntu/python3.10?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSpython3.11pkg:deb/ubuntu/python3.11?arch=source&distro=esm-apps/jammyOther 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
User-controlled header names and values containing newlines can allow injecting HTTP headers.
References
- ubuntu.com/security/CVE-2026-0865 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-0865 (opens in a new tab)
- github.com/python/cpython/commit/22e4d55285cee52bc4dbe061324e5f30bd4dee58 (opens in a new tab)
- github.com/python/cpython/commit/23e3c0ae867cca0130e441e776c9955b9027c510 (opens in a new tab)
- github.com/python/cpython/commit/2f840249550e082dc351743f474ba56da10478d2 (opens in a new tab)
- github.com/python/cpython/commit/4802b96a2cde58570c24c13ef3289490980961c5 (opens in a new tab)
- github.com/python/cpython/commit/e4846a93ac07a8ae9aa18203af0dd13d6e7a6995 (opens in a new tab)
- github.com/python/cpython/commit/f7fceed79ca1bceae8dbe5ba5bc8928564da7211 (opens in a new tab)
- github.com/python/cpython/issues/143916 (opens in a new tab)
- github.com/python/cpython/pull/143917 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/BJ6QPHNSHJTS3A7CFV6IBMCAP2DWRVNT/ (opens in a new tab)
- ubuntu.com/security/notices/USN-8018-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8018-3 (opens in a new tab)