CVEfocus › CVE database › CVE-2018-1000030

CVE-2018-1000030

CVSS 3.6 LowEPSS 1.2% (higher than 68% of CVEs)Published 2018-02-08Updated 2026-10-08Assigner: mitre

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.

What to do

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
14Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04python2.7Fixed2.7.12-1ubuntu0~16.04.4UBUNTU-CVE-2018-1000030
Ubuntu 16.04python3.5Not affected
vulnerable_code_not_present
Ubuntu 14.04python2.7Fixed2.7.6-8ubuntu0.5UBUNTU-CVE-2018-1000030
Red Hat Enterprise Linux 7pythonWill not fix
Will not fix
Red Hat Enterprise Linux 7python-debugWill not fix
Will not fix
Red Hat Enterprise Linux 7python-develWill not fix
Will not fix
Red Hat Enterprise Linux 7python-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7python-testWill not fix
Will not fix
Red Hat Enterprise Linux 7python-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 7tkinterWill not fix
Will not fix
Red Hat Enterprise Linux 6pythonWill not fix
Will not fix
Red Hat Enterprise Linux 6python-develWill not fix
Will not fix
Red Hat Enterprise Linux 6python-libsWill not fix
Will not fix
Red Hat Enterprise Linux 6python-testWill not fix
Will not fix
Red Hat Enterprise Linux 6python-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 6tkinterWill not fix
Will not fix
Red Hat Enterprise Linux 5pythonWill not fix
Will not fix

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.