Home / Python / Python / CVE-2006-1542
CVE-2006-1542: is it exploited, and which versions of Python are affected and fixed?
CVE-2006-1542 is a vulnerability in Python. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: python through 2.4.2 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Low (3.7, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:53 UTC.
What is CVE-2006-1542?
Stack-based buffer overflow in Python 2.4.2 and earlier, running on Linux 2.6.12.5 under gcc 4.0.3 with libc 2.3.5, allows local users to cause a "stack overflow," and possibly gain privileges, by running a script from a current working directory that has a long name, related to the realpath function. NOTE: this might not be a vulnerability. However, the fact that it appears in a programming language interpreter could mean that some applications are affected, although attack scenarios might be limited because the attacker might already need to cross privilege boundaries to cause an exploitable program to be placed in a directory with a long name; or, depending on the method that Python uses to determine the current working directory, setuid applications might be affected.
From the CVE record by mitre, last updated August 7, 2024, 17:19 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| python | python | through 2.4.2 | application |
NVD analysis (status Modified), last modified June 16, 2026, 22:23 UTC.
How severe is CVE-2006-1542?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 3.7 | CVSS 2.0 | AV:L/AC:H/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2006-1542 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.91% probability of exploitation activity in the next 30 days, percentile 61.0 (FIRST EPSS, scores of December 2, 2026)
Where are the vendor advisories and references?
- 31492 third-party-advisory, x_refsource_SECUNIA
- RHSA-2008:0629 vendor-advisory, x_refsource_REDHAT
- 1591 exploit, x_refsource_EXPLOIT-DB
- http://www.gotfault.net/research/exploit/gexp-python.py x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 30, 2006
- Published
- March 30, 2006, 11:00 UTC
- CVE record updated
- August 7, 2024, 17:19 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 22:23 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:53 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Python?
- Aug 25, 2023CVE-2023-40217 Python: n/a
- Aug 23, 2023CVE-2023-41105 Python: untrusted Search Path
- Aug 22, 2023CVE-2022-48566 Python: race condition
- Aug 22, 2023CVE-2022-48565 Python: XML external entity (XXE)
- Aug 22, 2023CVE-2022-48564 Python: denial of service (uncontrolled resource consumption)
- Aug 22, 2023CVE-2022-48560 Python: use after free
- Aug 15, 2023CVE-2023-38898 Python: n/a disputed
- Jun 25, 2023CVE-2023-36632 Python: uncontrolled recursion disputed
Questions about CVE-2006-1542
Is CVE-2006-1542 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.91% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Python are affected by CVE-2006-1542?
python through 2.4.2, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2006-1542?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2006-1542?
Low (3.7, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2006-1542?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.