cve.bz

CVE-2017-1000158 Year 2038 problem, Y2K38, Y2038, Epochalypse

9.8 criticalEPSS 7.9%Fix available

Critical (9.8). EPSS 7.9% estimated probability of exploitation activity in the next 30 days.

On this page
CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting in heap-based buffer overflow (and possible arbitrary code execution)

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
7.9% (unchanged from 7.9% a week ago; 7.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-1000158 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-1000158?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-1000158?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-1000158 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonbefore 2.7.15
python:pythonfrom 3.4.0 before 3.4.8
python:pythonfrom 3.5.0 before 3.5.5
debian:debian_linux7.0
debian:debian_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7python2.62.6.8-1.1+deb7u1DLA-1190-1
Debian7python2.72.7.3-6+deb7u4DLA-1189-1
Debian8python2.72.7.9-2+deb8u2DLA-1519-1
Debian8python3.43.4.2-1+deb8u1DLA-1520-1
Debian9python3.53.5.3-1+deb9u1DSA-4307-1
Debian11python2.72.7.13-4DEBIAN-CVE-2017-1000158
Ubuntu14.04:LTSpython2.72.7.6-8ubuntu0.4UBUNTU-CVE-2017-1000158 USN-3496-1
Ubuntu14.04:LTSpython3.43.4.3-1ubuntu1~14.04.6UBUNTU-CVE-2017-1000158 USN-3496-3
Ubuntu14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1UBUNTU-CVE-2017-1000158
Ubuntu16.04:LTSpython2.72.7.12-1ubuntu0~16.04.2UBUNTU-CVE-2017-1000158 USN-3496-1
Ubuntu16.04:LTSpython3.53.5.2-2ubuntu0~16.04.4UBUNTU-CVE-2017-1000158 USN-3496-3
SUSEEnterprise Storage 5python2.7.13-28.3.2SUSE-SU-2018:1372-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Desktop 12 SP4 and 18 morepython33.4.10-25.39.3SUSE-SU-2020:0497-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Desktop 12 SP4 and 18 morepython3-base3.4.10-25.39.2SUSE-SU-2020:0497-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3python, python-base2.7.13-28.3.2SUSE-SU-2018:1372-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Desktop Applications 15 and 2 morepython2.7.17-7.32.2SUSE-SU-2020:0234-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Python 2 15 SP1python-base2.7.17-7.32.1SUSE-SU-2020:0234-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4python, python-base2.6.9-40.3.1SUSE-SU-2018:0768-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4python-doc2.6-8.40.3.1SUSE-SU-2018:0768-1
SUSELinux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3python-doc2.7.13-28.3.3SUSE-SU-2018:1372-1
SUSELinux Enterprise Software Development Kit 12 SP3, Linux Enterprise Workstation Extension 12 SP3python-base2.7.13-28.3.2SUSE-SU-2018:1372-1
openSUSETumbleweedpython2.7.18-8.1openSUSE-SU-2024:11202-1
Alpinev3.4python2.7.14-r0ALPINE-CVE-2017-1000158
Alpinev3.5, v3.6python22.7.14-r0ALPINE-CVE-2017-1000158
Azure Linux3python-pyno fix listedAZL-109614

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of python as shipped with Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7, and python27-python, rh-python34-python, and rh-python35-python as shipped with Red Hat Software Collections 3. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5pythonWill not fix
Red Hat Enterprise Linux 6pythonWill not fix
Red Hat Enterprise Linux 7pythonWill not fix
Red Hat Software Collectionspython27-pythonWill not fix
Red Hat Software Collectionsrh-python34-pythonWill not fix
Red Hat Software Collectionsrh-python35-pythonWill not fix
Red Hat Software Collectionsrh-python36-pythonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-1000158.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON