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...
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.
Exploit likelihood
What each source reports
NVD Score used
3.7
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.
- Record
CVE-2006-1542- CVSS 2.0
- 3.7 Low
AV:L/AC:H/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2006-1542- Updated
- 2026-11-02
EUVDEUVD-2006-1546 No score
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.
- Record
EUVD-2006-1546- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-75w6-c37p-69v3 No score
Stack-based buffer overflow in Python 2.4.2 and earlier, running on Linux 2.6.12.5 under gcc 4.0...
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.
- Record
GHSA-75w6-c37p-69v3- Updated
- 2026-11-02
OSVAZL-109548 No score
CVE-2006-1542 affecting package python-py 1.11.0-1
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.
- Record
AZL-109548- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
python-pyAzure Linux:3 |
through 1.11.0-1 | None known |
rhn-solaris-bootstrapRed Hat:network_satellite:5.0:el4 From an advisory covering 12 CVEs |
before 0:5.0.2-3 | 0:5.0.2-3 |
rhn_solaris_bootstrap_5_0_2_3Red Hat:network_satellite:5.0:el4 From an advisory covering 12 CVEs |
before 0:1-0 | 0:1-0 |
rhn-solaris-bootstrapRed Hat:network_satellite:4.2::el3 From an advisory covering 12 CVEs |
before 0:5.0.2-3 | 0:5.0.2-3 |
rhn_solaris_bootstrap_5_0_2_3Red Hat:network_satellite:4.2::el3 From an advisory covering 12 CVEs |
before 0:1-0 | 0:1-0 |
rhn-solaris-bootstrapRed Hat:network_satellite:4.2::el4 From an advisory covering 12 CVEs |
before 0:5.0.2-3 | 0:5.0.2-3 |
rhn_solaris_bootstrap_5_0_2_3Red Hat:network_satellite:4.2::el4 From an advisory covering 12 CVEs |
before 0:1-0 | 0:1-0 |
rhn-solaris-bootstrapRed Hat:network_satellite:5.1::el4 From an advisory covering 12 CVEs |
before 0:5.1.1-3 | 0:5.1.1-3 |
rhn_solaris_bootstrap_5_1_1_3Red Hat:network_satellite:5.1::el4 From an advisory covering 12 CVEs |
before 0:1-0 | 0:1-0 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Python 2.4.2 - 'realpath()' Local Stack Overflow | 2006-03-18 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2006-1542 is a low vulnerability (CVSS 3.7) in Python, published March 30, 2006. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.91%, the 60th percentile. No source names a fixed version.
References
secunia.com/advisories/31492
redhat.com/support/errata/RHSA-2008-0629.html
exploit-db.com/exploits/1591
gotfault.net/research/exploit/gexp-python.py
nvd.nist.gov/vuln/detail/CVE-2006-1542
github.com/advisories/GHSA-75w6-c37p-69v3
Show 54 moreShow less
access.redhat.com/errata/RHSA-2008:0264
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=235093
bugzilla.redhat.com/show_bug.cgi?id=295971
bugzilla.redhat.com/show_bug.cgi?id=430640
bugzilla.redhat.com/show_bug.cgi?id=430641
bugzilla.redhat.com/show_bug.cgi?id=430649
bugzilla.redhat.com/show_bug.cgi?id=430651
bugzilla.redhat.com/show_bug.cgi?id=430652
bugzilla.redhat.com/show_bug.cgi?id=430654
bugzilla.redhat.com/show_bug.cgi?id=430655
bugzilla.redhat.com/show_bug.cgi?id=430659
bugzilla.redhat.com/show_bug.cgi?id=430660
security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0264.json
access.redhat.com/security/cve/CVE-2005-1849
cve.org/CVERecord?id=CVE-2005-1849
nvd.nist.gov/vuln/detail/CVE-2005-1849
access.redhat.com/security/cve/CVE-2005-2096
bugzilla.redhat.com/show_bug.cgi?id=430650
cve.org/CVERecord?id=CVE-2005-2096
nvd.nist.gov/vuln/detail/CVE-2005-2096
access.redhat.com/security/cve/CVE-2005-2969
cve.org/CVERecord?id=CVE-2005-2969
nvd.nist.gov/vuln/detail/CVE-2005-2969
access.redhat.com/security/cve/CVE-2006-1542
cve.org/CVERecord?id=CVE-2006-1542
access.redhat.com/security/cve/CVE-2006-2937
cve.org/CVERecord?id=CVE-2006-2937
nvd.nist.gov/vuln/detail/CVE-2006-2937
access.redhat.com/security/cve/CVE-2006-2940
cve.org/CVERecord?id=CVE-2006-2940
nvd.nist.gov/vuln/detail/CVE-2006-2940
access.redhat.com/security/cve/CVE-2006-3738
cve.org/CVERecord?id=CVE-2006-3738
nvd.nist.gov/vuln/detail/CVE-2006-3738
access.redhat.com/security/cve/CVE-2006-4339
cve.org/CVERecord?id=CVE-2006-4339
nvd.nist.gov/vuln/detail/CVE-2006-4339
access.redhat.com/security/cve/CVE-2006-4343
cve.org/CVERecord?id=CVE-2006-4343
nvd.nist.gov/vuln/detail/CVE-2006-4343
access.redhat.com/security/cve/CVE-2006-4980
cve.org/CVERecord?id=CVE-2006-4980
nvd.nist.gov/vuln/detail/CVE-2006-4980
access.redhat.com/security/cve/CVE-2007-2052
cve.org/CVERecord?id=CVE-2007-2052
nvd.nist.gov/vuln/detail/CVE-2007-2052
access.redhat.com/security/cve/CVE-2007-4965
cve.org/CVERecord?id=CVE-2007-4965
nvd.nist.gov/vuln/detail/CVE-2007-4965
access.redhat.com/errata/RHSA-2008:0525
security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0525.json
access.redhat.com/errata/RHSA-2008:0629
security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0629.json