Every CVE Search/ Get API key

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.7 LowPublic exploit

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

0.91%Down 0.9 points since Feb 4, 2022
90%50%10%1%

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 LowAV: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

Affected packages
PackageAffectedFixed
python-py
Azure Linux:3
through 1.11.0-1 None known
rhn-solaris-bootstrap
Red 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_3
Red Hat:network_satellite:5.0:el4
From an advisory covering 12 CVEs
before 0:1-0
0:1-0
rhn-solaris-bootstrap
Red 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_3
Red Hat:network_satellite:4.2::el3
From an advisory covering 12 CVEs
before 0:1-0
0:1-0
rhn-solaris-bootstrap
Red 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_3
Red Hat:network_satellite:4.2::el4
From an advisory covering 12 CVEs
before 0:1-0
0:1-0
rhn-solaris-bootstrap
Red 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_3
Red 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.

Public exploits
SourceLinkDate
Exploit-DBPython 2.4.2 - 'realpath()' Local Stack Overflow2006-03-18

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 54 moreShow less
MoveEnter Open