Python 2.6 - Integer Overflow and Heap Corruption

python2.6 Updated 02 Oct 2025

Summary

24/11/2017
N/A
Yes i
Unrated
Not published

DLA-1190-1: python2.6 - security update. Affects python2.6 versions < 2.6.8-1.1+deb7u1. Fixed in 2.6.8-1.1+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Python 2.6 is an interactive high-level object-oriented language commonly known as CPython. It is the reference implementation of Python and is vulnerable to an integer overflow and heap corruption issue. This vulnerability arises from improper handling of large strings with escaped characters.

Vulnerability Detail

The vulnerability, identified as CVE-2017-1000158, affects CPython versions 2.6 and 2.7. It can lead to arbitrary code execution due to an integer overflow and subsequent heap corruption. Attackers can exploit this vulnerability by manipulating large strings with escaped characters. The consequences of successful exploitation include potential arbitrary code execution, which can compromise the security and integrity of the affected system.

How To Fix

Minimum fixed version

2.6.8-1.1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python2.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

In conclusion, Python 2.6 is vulnerable to an integer overflow and heap corruption issue (CVE-2017-1000158). To mitigate the risk, users should upgrade their python2.6 packages to version 2.6.8-1.1+deb7u1. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python2.6 →

Share this vulnerability

FAQ

The vulnerability can lead to arbitrary code execution, potentially compromising the security and integrity of the affected system.

CPython versions 2.6 and 2.7 are vulnerable to this issue.

Attackers can exploit this vulnerability by manipulating large strings with escaped characters.

No specific workaround has been provided. It is recommended to update the python2.6 package to the fixed version.

More information about Debian LTS security advisories, including how to apply updates and frequently asked questions, can be found at: https://wiki.debian.org/LTS

Related vulnerabilities

Recent vulnerabilities recorded for python2.6.

How To Fix

Minimum fixed version

2.6.8-1.1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python2.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback