CVE-2006-1542
Description
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.
Timeline
- 2006-03-18First Exploit-DB entry (EDB-ID 1591)12 days before publication
- 2006-03-30Published by the CNA11:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 1591 | local | linux | 2006-03-18 | yes |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| python python | through 2.4.2no fix listed | not listed |
References
- http://www.redhat.com/support/errata/RHSA-2008-0629.html
- http://www.gotfault.net/research/exploit/gexp-python.py
- https://www.exploit-db.com/exploits/1591
- http://secunia.com/advisories/31492
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2006-1542'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2006-1542'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2006-1542'curl 'https://api.contrastcyber.com/cve_products/CVE-2006-1542'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).