nday
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…Title composed by nday; the CVE record has none.

A public PoC appeared 12 days before the CVE record was published. nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: exploitdb. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

local
AV:L in AV:L/AC:H/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
no authentication required
Au:N in AV:L/AC:H/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
Exploit-DB
Exploit-DB entries 1591
Python (CPython)
CPE names NVD's analysts give as vulnerable: a:python:python
open-source library / framework
CPE names NVD's analysts give as vulnerable: a:python:pythonthe product type of Python (CPython) in nday's product registry

CVSS 2.0 has no user-interaction metric, so “no user interaction” and “remote, unauthenticated” are never assigned from a CVSS 2.0 vector.

stage
POC
disclosed
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2006-03-30T11:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2006-03-18, date only
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Event log

2006-03-18date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Python 2.4.2 - 'realpath()' Local Stack Overflow” (EDB-1591). Verified by Exploit-DB.

src exploitdb 1591 · nday , bulk import · raw
{
  "id": 24387,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/1591",
  "occurred_at": "2006-03-18T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "1591",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/1591",
    "file": "exploits/linux/local/1591.py",
    "kind": "exploit",
    "tags": [],
    "type": "local",
    "title": "Python 2.4.2 - 'realpath()' Local Stack Overflow",
    "author": "Gotfault Security",
    "edb_id": 1591,
    "cve_ids": [
      "CVE-2006-1542"
    ],
    "platform": "linux",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2006-03-17",
    "date_updated": "2016-06-30",
    "date_published": "2006-03-18"
  }
}
+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 89944,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2006-1542",
  "occurred_at": "2006-03-30T11:00:00Z",
  "observed_at": "2026-11-13T05:35:44.026125Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2006-03-30T11:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.