15-Year-Old Unpatched Python Vulnerability Potentially Affects Over 350,000 Projects

Share:

September 22, 2022 Ravie Lakshmanan

As many as 350,000 open source projects are believed to be potentially vulnerable to exploitation as a result of a security flaw in a Python module that has remained unpatched for 15 years.

The open source repositories span a number of industry verticals, such as software development, artificial intelligence/machine learning, web development, media, security, and IT management.

The shortcoming, tracked as CVE-2007-4559 (CVSS score: 6.8), is rooted in the tarfile module, successful exploitation of which could lead to code execution from an arbitrary file write.

 

“The vulnerability is a path traversal attack in the extract and extractall functions in the tarfile module that allow an attacker to overwrite arbitrary files by adding the ‘..’ sequence to filenames in a TAR archive,” Trellix security researcher Kasimir Schulz said in a writeup.

Originally disclosed in August 2007, the bug has to do with how a specially crafted tar archive can be leveraged to overwrite arbitrary files on a target machine simply upon opening the file.

Put simply, a threat actor can exploit the weakness by uploading a malicious tarfile in a manner that makes it possible to escape the directory that a file is intended to be extracted to and achieve code execution, allowing the adversary to potentially seize shoppingmode control of a target device.

“Never extract archives from untrusted sources without prior inspection,” the Python documentation for tarfile reads. “It is possible that files are created outside of path, e.g. members that have absolute filenames starting with ‘/’ or filenames with two dots ‘..’.”

 

The vulnerability is also reminiscent of a recently disclosed security flaw in RARlab’s UnRAR utility (CVE-2022-30333) that could lead to remote code execution.

Trellix has further released a custom utility called Creosote to scan for projects vulnerable to CVE-2007-4559, using it to uncover the vulnerability in the Spyder Python IDE as well as Polemarch.

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
4:47 am, May 24, 2025
weather icon 13°C
L: 12° | H: 14°
moderate rain
Humidity: 87 %
Pressure: 1014 mb
Wind: 8 mph SW
Wind Gust: 0 mph
UV Index: 0
Precipitation: 1.78 mm
Clouds: 100%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 4:56 am
Sunset: 8:58 pm
DailyHourly
Daily ForecastHourly Forecast
Today 10:00 pm
weather icon
12° | 14°°C 1 mm 100% 13 mph 94 % 1014 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
13° | 20°°C 0.93 mm 93% 16 mph 90 % 1015 mb 0 mm/h
Mon May 26 10:00 pm
weather icon
10° | 17°°C 1 mm 100% 13 mph 79 % 1018 mb 0 mm/h
Tue May 27 10:00 pm
weather icon
13° | 20°°C 1 mm 100% 14 mph 91 % 1017 mb 0 mm/h
Wed May 28 10:00 pm
weather icon
14° | 21°°C 1 mm 100% 16 mph 97 % 1018 mb 0 mm/h
Today 7:00 am
weather icon
13° | 13°°C 1 mm 100% 10 mph 90 % 1014 mb 0 mm/h
Today 10:00 am
weather icon
15° | 16°°C 0.24 mm 24% 10 mph 94 % 1013 mb 0 mm/h
Today 1:00 pm
weather icon
22° | 22°°C 0 mm 0% 13 mph 61 % 1012 mb 0 mm/h
Today 4:00 pm
weather icon
24° | 24°°C 0 mm 0% 13 mph 54 % 1011 mb 0 mm/h
Today 7:00 pm
weather icon
19° | 19°°C 0.43 mm 43% 9 mph 77 % 1011 mb 0 mm/h
Today 10:00 pm
weather icon
16° | 16°°C 0 mm 0% 11 mph 88 % 1010 mb 0 mm/h
Tomorrow 1:00 am
weather icon
15° | 15°°C 0 mm 0% 12 mph 85 % 1009 mb 0 mm/h
Tomorrow 4:00 am
weather icon
15° | 15°°C 0.93 mm 93% 15 mph 90 % 1007 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€95,141.52
-2.69%
Ethereum(ETH)
€2,243.68
-6.01%
Tether(USDT)
€0.88
0.01%
XRP(XRP)
€2.05
-5.39%
Solana(SOL)
€154.29
-4.91%
USDC(USDC)
€0.88
0.00%
Dogecoin(DOGE)
€0.201614
-8.54%
Shiba Inu(SHIB)
€0.000013
-8.14%
Pepe(PEPE)
€0.000012
-11.19%
Peanut the Squirrel(PNUT)
€0.311130
-11.09%
Scroll to Top