{"id":"CVE-2006-1542","aliases":["AZL-109548","EUVD-2006-1546","GHSA-75w6-c37p-69v3","RHSA-2008:0264","RHSA-2008:0525","RHSA-2008:0629"],"status":"published","title":"Stack-based buffer overflow in Python 2.4.2 and earlier, running on Linux 2.6.12.5 under gcc 4.0...","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.","severity":{"version":"2.0","score":3.7,"vector":"AV:L/AC:H/Au:N/C:P/I:P/A:P","level":"low","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00908,"percentile":0.6019,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2006-03-30T11:00:00Z","modified":"2026-10-27T05:36:16Z","exploits":[{"source":"exploitdb","id":"EDB-1591","title":"Python 2.4.2 - 'realpath()' Local Stack Overflow","type":"local","platform":"linux","date":"2006-03-18","verified":true,"url":"https://www.exploit-db.com/exploits/1591"}],"affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"python-py","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.11.0-1"}]}]},{"source":"osv","ecosystem":"Red Hat:network_satellite:5.0:el4","package":"rhn-solaris-bootstrap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.2-3"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:network_satellite:5.0:el4","package":"rhn_solaris_bootstrap_5_0_2_3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1-0"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:network_satellite:4.2::el3","package":"rhn-solaris-bootstrap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.2-3"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:network_satellite:4.2::el3","package":"rhn_solaris_bootstrap_5_0_2_3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1-0"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:network_satellite:4.2::el4","package":"rhn-solaris-bootstrap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.2-3"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:network_satellite:4.2::el4","package":"rhn_solaris_bootstrap_5_0_2_3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1-0"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:network_satellite:5.1::el4","package":"rhn-solaris-bootstrap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.1.1-3"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:network_satellite:5.1::el4","package":"rhn_solaris_bootstrap_5_1_1_3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1-0"}]}],"bundled":12}],"products":[{"vendor":"python","product":"python"}],"references":[{"url":"http://secunia.com/advisories/31492","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2008-0629.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/1591","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.gotfault.net/research/exploit/gexp-python.py","tags":["x_refsource_MISC","x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-1542","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-75w6-c37p-69v3"},{"url":"https://access.redhat.com/errata/RHSA-2008:0264","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=235093","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=295971","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430640","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430641","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430649","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430651","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430652","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430654","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430655","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430659","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430660","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0264.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2005-1849","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-1849","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-1849","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2005-2096","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=430650","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-2096","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-2096","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2005-2969","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-2969","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-2969","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-1542","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-1542","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-2937","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-2937","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-2937","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-2940","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-2940","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-2940","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-3738","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-3738","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-3738","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-4339","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-4339","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4339","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-4343","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-4343","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4343","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-4980","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-4980","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4980","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-2052","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-2052","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-2052","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-4965","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-4965","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4965","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2008:0525","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0525.json","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2008:0629","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0629.json","tags":["advisory"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2006-03-30T11:00:00Z","modified":"2024-08-07T17:19:47.903Z","updated_at":"2026-11-02T14:33:51.835276Z"}],"euvd":[{"id":"EUVD-2006-1546","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.","status":"published","published":"2006-03-30T11:00:00Z","modified":"2024-08-07T17:19:47Z","updated_at":"2026-11-03T01:16:04.552077Z"}],"ghsa":[{"id":"GHSA-75w6-c37p-69v3","title":"Stack-based buffer overflow in Python 2.4.2 and earlier, running on Linux 2.6.12.5 under gcc 4.0...","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.","status":"published","published":"2022-05-01T06:50:42Z","modified":"2023-01-31T05:01:01Z","updated_at":"2026-11-02T14:47:58.582186Z"}],"nvd":[{"id":"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.","status":"published","published":"2006-03-30T11:02:00Z","modified":"2026-06-16T22:23:10.03Z","cvss":[{"version":"2.0","score":3.7,"vector":"AV:L/AC:H/Au:N/C:P/I:P/A:P","level":"low","assessor":"primary"}],"updated_at":"2026-11-02T14:01:01.776256Z"}],"osv":[{"id":"AZL-109548","title":"CVE-2006-1542 affecting package python-py 1.11.0-1","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.","status":"published","published":"2006-03-30T11:02:00Z","modified":"2026-10-27T05:36:16Z","updated_at":"2026-11-02T15:28:02.044071Z"},{"id":"RHSA-2008:0264","title":"Red Hat Security Advisory: Red Hat Network Satellite Server Solaris client security update","status":"published","published":"2024-09-15T17:19:20Z","modified":"2026-01-14T11:00:41.880457Z","updated_at":"2026-11-02T15:52:59.70892Z"},{"id":"RHSA-2008:0525","title":"Red Hat Security Advisory: Red Hat Network Satellite Server Solaris client security update","status":"published","published":"2024-09-15T17:19:23Z","modified":"2026-01-14T11:00:44.754158Z","updated_at":"2026-11-02T15:52:59.70892Z"},{"id":"RHSA-2008:0629","title":"Red Hat Security Advisory: Red Hat Network Satellite Server Solaris client security update","status":"published","published":"2024-09-15T17:19:28Z","modified":"2026-01-14T11:00:45.350883Z","updated_at":"2026-11-02T15:52:59.70892Z"}]}}
