CVE-2008-4108: High severity cpython vulnerability

Published Sep 15, 2008
·
Updated

Description of problem:

A security flaw was discovered in the Python generic FAQ wizard moving tool (move-faqwiz.sh).

Relevant part of the code:

28 cutnpad $1 2 suffix1 29 cutnpad $2 1 prefix2 30 cutnpad $2 2 suffix2 31 tmpfile=tmp$RANDOM.tmp 32 file1=faq$prefix1.$suffix1.htp 33 file2=faq$prefix2.$suffix2.htp

Description:

An attacker could in advance create a symbolic link pointing to tmpXXXXX.tmp (the output produced by $RANDOM is only 5 digits long), then run the Python generic FAQ wizard moving tool which would allow him to erase / truncate the target of the symbolic link to zero size.

References:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498899

Other sources

Tools/faqwiz/move-faqwiz.sh (aka the generic FAQ wizard moving tool) in Python 2.4.5 might allow local users to overwrite arbitrary files via a symlink attack on a tmp$RANDOM.tmp temporary file. NOTE: there may not be common usage scenarios in which tmp$RANDOM.tmp is located in an untrusted directory.

MITRE

Affected Software

1 affected component
Python Software Foundation Python=2.4.5

Event History

Sep 15, 2008
Data Sourced
12:40 PM
DescriptionSeverityAffected Software
Sep 18, 2008
CVE Published
via MITRE·05:47 PM
Data Sourced
via MITRE·05:47 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2008-4108?

CVE-2008-4108 has been classified as a moderate severity vulnerability.

2

How do I fix CVE-2008-4108?

To fix CVE-2008-4108, it is recommended to upgrade Python to a version greater than 2.4.5.

3

What type of vulnerability is CVE-2008-4108?

CVE-2008-4108 is a security flaw found in the Python generic FAQ wizard moving tool.

4

Which software is affected by CVE-2008-4108?

CVE-2008-4108 affects Python version 2.4.5.

5

Is there a known exploit for CVE-2008-4108?

Yes, there are known exploits that leverage the vulnerabilities in the Python generic FAQ wizard.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203