Home/CVE/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, allo
CVE

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 with libc 2.3.5, allo

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.

LOW · CVSS 3.7 EPSS 0.00206
Schedule remediation
  • Public exploit or PoC is available
Sigma rules8 YARA rules0

Affected Products & Versions

1
python<= 2.4.2

Public Exploits & PoCs

3

Sigma Hunt Rules

8
Exact rules name this CVE ID. Product rules name an affected product in their title. Related rules cover techniques used by actors who exploited this CVE. Showing the most relevant matches; the complete related set is on the full drill-down.
producthighPython Reverse Shell Execution Via PTY And Socket Modules
producthighInline Python Execution - Spawn Shell Via OS System Library
producthighPython One-Liners with Base64 Decoding - Linux
producthighPython Function Execution Security Warning Disabled In Excel
producthighPython One-Liners with Base64 Decoding
producthighPython Spawning Pretty TTY on Windows

Scoring & Timeline

3.7
LOW · CVSS v2 (legacy) · cve@mitre.org
View on NVD
This CVE predates CVSS v3; the legacy v2 score is shown so triage still has a severity to work with.
v2 Vector
AV:L/AC:H/Au:N/C:P/I:P/A:P
Published to NVD30 Mar 2006 · 11:02 AM

Vendor Advisories

3
rhsaRHSA-2008:0264Moderate
rhsaRHSA-2008:0629Moderate
rhsaRHSA-2008:0525Moderate
🔗

References & Sources

2
Source URLs (vendor pages, mailing lists, write-ups). Exploit/PoC links are in their own section above to avoid duplication.
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin