Python 2.x — End of Life

EOL
EOL: Jan 1, 20202 releases in this series0 CVEs

Python 2.x — All releases

VersionReleasedActive supportEOL dateLatest patchStatus
2.7Jul 3, 2010Jan 1, 20202.7.18EOL
2.6Oct 1, 2008Oct 29, 20132.6.9EOL

CVEs affecting Python 2.x (0)

No CVEs tracked for Python 2.x.

Python 2.x is EOL — migrate to Python 3.x

Python 3.x is the next major release. Plan your upgrade before Python 2.x stops receiving security patches.

See Python 3.x

Frequently asked questions

Is Python 2 end of life?

Yes. All Python 2.x releases have reached end of life and no longer receive security patches. Migrate to Python 3.x as soon as possible.

What CVEs affect Python 2?

No CVEs are currently tracked for Python 2.x in our database. This may mean no vulnerabilities have been recorded yet, or the data is still syncing.

What is the latest Python 2 version?

The latest Python 2.x patch release is 2.7.18, released on April 19, 2020. Always run the latest patch to benefit from all security fixes.

How to migrate from Python 2 to Python 3?

To migrate from Python 2 to Python 3: (1) review the official Python 3 migration guide for breaking changes, (2) update dependencies and configuration accordingly, (3) test thoroughly in a staging environment, (4) deploy with a rollback plan. Starting early gives you time to resolve compatibility issues before your current version reaches end of life.

Is it safe to run Python 2 in production?

No. Python 2 has reached end of life and security vulnerabilities are no longer patched. Upgrade to a supported version immediately.

Data sourced from endoflife.date · CVE data from NVD · EPSS from FIRST.org · KEV from CISA