Python 2.7.14 is vulnerable to a Heap-Buffer-Overflow as well as a Heap-Use-After-Free. Python versions prior to 2.7.14 may also be vulnerable and it appears that Python 2.7.17 and prior may also be vulnerable however this has not been confirmed. The vulnerability lies when multiply threads are handling large amounts of data. In both cases there is essentially a race condition that occurs. For the Heap-Buffer-Overflow, Thread 2 is creating the size for a buffer, but Thread1 is already writing to the buffer without knowing how much to write. So when a large amount of data is being processed, it is very easy to cause memory corruption using a Heap-Buffer-Overflow. As for the Use-After-Free, Thread3->Malloc->Thread1->Free's->Thread2-Re-uses-Free'd Memory. The PSRT has stated that this is not a security vulnerability due to the fact that the attacker must be able to run code, however in some situations, such as function as a service, this vulnerability can potentially be used by an attacker to violate a trust boundary, as such the DWF feels this issue deserves a CVE.
CVSS Details
- CVSS 3.1 Base Score: 3.6
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:L)
- CVSS 3.0 Vector: (CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:L)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade python2.7 | Jul 30, 2024 | Feb 8, 2018 |
| Gentoo Linux | — | Upgrade dev-lang/python. | Nov 9, 2018 | Feb 8, 2018 |
| Huawei Euleros 2_0_sp1 | — | Upgrade python-libsUpgrade python-develUpgrade python | May 2, 2018 | Feb 8, 2018 |
| Huawei Euleros 2_0_sp3 | — | Upgrade pythonUpgrade python-libsUpgrade python-develUpgrade tkinter | Sep 25, 2019 | Feb 8, 2018 |
| Oracle Solaris | — | Upgrade runtime/python-27 to version 2.7.15-11.4.6.0.1.2.0 on Solaris 11.4Upgrade runtime/python-27/tests to version 2.7.15-11.4.6.0.1.2.0 on Solaris 11.4Upgrade library/python/tkinter-27 to version 2.7.15-11.4.6.0.1.2.0 on Solaris 11.4 | Feb 20, 2019 | Feb 8, 2018 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 8, 2018 |
| Suse | — | Upgrade libpython2_7-1_0Upgrade python-cursesUpgrade python-32bitUpgrade python-gdbmUpgrade python-tkUpgrade python-doc-pdfUpgrade python-base-32bitUpgrade python-docUpgrade python-idleUpgrade python-baseUpgrade pythonUpgrade python-develUpgrade libpython2_7-1_0-32bitUpgrade python-xmlUpgrade python-demo | May 23, 2018 | Feb 8, 2018 |
| Ubuntu | — | Upgrade python3.5Upgrade python3.4Upgrade python2.7Upgrade python2.7-minimalUpgrade python3.4-minimalUpgrade python3.5-minimal | Nov 15, 2018 | Feb 8, 2018 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Feb 8, 2018 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub