Connect with us
X
Categories:

Technology

350k open source repos still include the 2007 Tarfile path traversal bug

Published

on

350k open source repositories still include the 2007 Tarfile path traversal bug
Share this post:

An estimated 350,000 open source repositories are affected by a 15-year old path traversal vulnerability in Python’s tarfile module, according to security researchers.

Having “stumbled across” the unpatched issue while investigating an unrelated vulnerability, they initially thought the flaw was a new zero-day bug before realizing it actually dated back to 2007.

Originally designated a severity score of CVSS 6.8, CVE-2007-4559 allows attackers to gain code execution from the file-write “in most cases”, said Trellix researcher Kasimir Schulz in a blog post published yesterday (September 21).

Schulz explained how Trellix researchers successfully achieved this outcome against wireless protocol analyzer Universal Radio Hacker, IT infrastructure management service Polemarch, and Spyder IDE, an open-source development environment for scientific programming.

Patching marathon

In a separate Trellix blog post, Douglas McKee said 61% of a sample of around 300,000 files containing the tarfile module, which makes it possible to read and write tar archives, were vulnerable to the bug.

Trellix has created patches for around 11,000 projects and anticipates that a further 70,000 projects will receive a fix in the coming weeks.

The vulnerability arose “from two or three lines of code using unsanitized tarfile.extract() or the built-in defaults of tarfile.extractall(),” explains a third Trellix blog post by Charles McFarland. “Failure to write any safety code to sanitize the members files before calling tarfile.extract() or tarfile.extractall() results in a directory traversal vulnerability, enabling a bad actor access to the file system.”

If an attacker adds ‘..’ with the separator for the operating system (‘/’ or ‘\’) into the file name, they can escape the directory the file is supposed to be extracted into.

Just a warning

However, a Python bug thread from 2007, which has been reopened in recent days, concluded with a maintainer asserting that “tarfile.py does nothing wrong, its behaviour conforms to the pax definition and pathname resolution guidelines in POSIX. There is no known or possible practical exploit”.

RECOMMENDED  Google To Roll Out Update For More Authentic And High-quality Search Results

The maintainer did add a warning to the Python documentation, which remains in place, that urges developers to “never extract archives from untrusted sources without prior inspection”.

Corner cases

Trellix’s McKee acknowledged that there are legitimate use cases for preserving behavior that could be abused for malicious purposes. However, he said, “in this instance I believe the risk outweighs the reward for accommodating a few corner cases”, especially given “most” third party online tutorials seemed to “incorrectly demonstrate the insecure use of the tarfile module”.

Trellix created and open-sourced a tool to aid the research and patching process that automatically detects the vulnerability in source code by leveraging AST intermediate representation.

Called Creosote, the utility provides a means to scan closed source repositories too.

“This vulnerability is incredibly easy to exploit” and prevalent in the wild, making Python’s tarfile module “a massive supply chain issue threatening infrastructure around the world”, concluded Schulz.


Get More Stories Like This On: Facebook: @AllNaijaEntertainment, Twitter: @AllNaijaEntertainment
Click to comment

Leave a Reply

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

Man who set Ugandan runner Rebecca Cheptegei on fire dies in hospital
Sports25 mins ago

Man who set Ugandan runner Rebecca Cheptegei on fire dies in hospital

European stock markets falls at open
News38 mins ago

European stock markets falls at open

Tesla’s Supercharger stations considered "illegal" in Germany
Automobile2 hours ago

Tesla To Launch Its Full Self Driving Feature In Europe And China Early 2025

Manchester United star Rasmus Hojlund faces delay to injury return
Sports14 hours ago

Manchester United star Rasmus Hojlund faces delay to injury return

William Gallas blames Raheem Sterling for Chelsea ousting
Sports15 hours ago

William Gallas blames Raheem Sterling for Chelsea ousting

Apple Watch Ultra 2 gets a new black color and new straps
Technology15 hours ago

Apple Watch Ultra 2 gets a new black color and new straps

Germany to expand border measures to stem irregular migration
News19 hours ago

Germany to expand border measures to stem irregular migration

The Apple Store website breaks down just hours before the launch of iPhone 16
Technology19 hours ago

The Apple Store website breaks down just hours before the launch of iPhone 16

3,391 Civil Servants to take promotion examinations in Kaduna
News19 hours ago

3,391 Civil Servants to take promotion examinations in Kaduna

Shehu Sani denounces the DSS raid on SERAP’s office
News20 hours ago

Shehu Sani denounces the DSS raid on SERAP’s office

Noel Gallagher could sell catalogue of songs for £200m after Oasis reunion
Entertainment23 hours ago

Noel Gallagher could sell catalogue of songs for £200m after Oasis reunion

Noel Gallagher added ‘grumpy middle-aged man’ to the National Portrait Gallery
Entertainment23 hours ago

Noel Gallagher added ‘grumpy middle-aged man’ to the National Portrait Gallery

Kendrick Lamar creates history by headlining the 2025 Super Bowl Halftime solo performance
Entertainment23 hours ago

Kendrick Lamar creates history by headlining the 2025 Super Bowl Halftime solo performance

Elon Musk pegs the first manned Starship flight to Mars for 2028 with a colony to follow in 20 years
Technology2 days ago

Elon Musk pegs the first manned Starship flight to Mars for 2028 with a colony to follow in 20 years

Amazon Fire Stick users have found a brilliant technique to control their TVs
Technology2 days ago

Amazon Fire Stick users have found a brilliant technique to control their TVs

Arsenal suffer injury scare as Riccardo Calafiori withdraws from Italy squad
Sports2 days ago

Arsenal suffer injury scare as Riccardo Calafiori withdraws from Italy squad

Todd Boehly and Clearlake Capital at breaking point
Sports2 days ago

Todd Boehly and Clearlake Capital at breaking point

Amanda Abbington ‘burning’ at BBC for ‘boys club’ Giovanni Pernice bullying probe
Entertainment2 days ago

Amanda Abbington ‘burning’ at BBC for ‘boys club’ Giovanni Pernice bullying probe

Tributes flows in as Legendary 70s bassist Herbie Flowers dies at age 86
Entertainment2 days ago

Tributes flows in as Legendary 70s bassist Herbie Flowers dies at age 86

Elton John praises Donald Trump for using one of his songs
Entertainment2 days ago

Elton John praises Donald Trump for using one of his songs

Dangote refinery may dump local market
News2 days ago

Dangote refinery may dump local market

Survivors of Yobe massacre: Decomposing bodies still litter our community after terrorist attack
News2 days ago

Survivors of Yobe massacre: Decomposing bodies still litter our community after terrorist attack

US seeks access to ailing Binance executive
News2 days ago

US seeks access to ailing Binance executive

Real Reason why Petrol from Dangote Refinery is Colorless
News2 days ago

Real Reason why Petrol from Dangote Refinery is Colorless

GTA 6 document provides a complete analysis of all leaks
Technology3 days ago

GTA 6 document provides a complete analysis of all leaks

Tecno Pocket Go recognized for award-winning innovation in AR gaming
Technology3 days ago

Tecno Pocket Go recognized for award-winning innovation in AR gaming

Jamal Musiala confirms Joshua Zirkzee tried to get him to sign for Manchester United
Sports3 days ago

Jamal Musiala confirms Joshua Zirkzee tried to get him to sign for Manchester United

US Open: Jack Draper reveals what made him throw up on court
Sports3 days ago

US Open: Jack Draper reveals what made him throw up on court

Edo State Government suspends school resumption over fuel price hike
News3 days ago

Edo State Government suspends school resumption over fuel price hike

Dangote Refinery
Business3 days ago

Dangote Refinery: NUPENG Vows Protection

Toyota Corolla One Of The Best-selling Cars Of All Time And For Good Reason
Automobile3 days ago

Toyota Cuts EV Target For 2026

Nigerian nurses in the UK, US forced back home
News3 days ago

Nigerian nurses in the UK, US forced back home

FG to construct blood collection facilities in 774 LGs
News3 days ago

FG to construct blood collection facilities in 774 LGs

Certain traits and contentious behaviors James Bond can’t have anymore in 2024
Entertainment3 days ago

Certain traits and contentious behaviors James Bond can’t have anymore in 2024

Nancy Isime revealed her initial fear of fame
Entertainment3 days ago

Nancy Isime revealed her initial fear of fame

Alex Unusual: I didn't leave social media because of AY pregnancy rumors
Entertainment3 days ago

Alex Unusual: I didn’t leave social media because of AY pregnancy rumors

New Xiaomi 10000 Power Bank, 33W with built-in cable arrives
Technology4 days ago

New Xiaomi 10000 Power Bank, 33W with built-in cable arrives

Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69mm body
Technology4 days ago

Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69mm body

Liam Gallagher warns fans complaining about 'rip off' Oasis ticket prices to 'shut up'
Entertainment4 days ago

Liam Gallagher warns fans complaining about ‘rip off’ Oasis ticket prices to ‘shut up’

Dequantes Lamar popularly know as Rich Homie Quan, dies at 33
Entertainment4 days ago

Dequantes Lamar popularly know as Rich Homie Quan, dies at 33

Rema donates N105m to home church for supporting family after dad’s death
Entertainment7 days ago

Rema donates N105m to home church for supporting family after dad’s death

Pope Francis to stop ‘abomination’ tradition — Morrissey
Entertainment6 days ago

Pope Francis to stop ‘abomination’ tradition — Morrissey

Oasis fans told they can sue Ticketmaster over dynamic pricing following formal complaints
Entertainment6 days ago

Oasis fans told they can sue Ticketmaster over dynamic pricing following formal complaints

One of the best movie of 2024 dropping on Netflix in a few days
Entertainment7 days ago

One of the best movie of 2024 dropping on Netflix in a few days

Nigerian nurses in the UK, US forced back home
News3 days ago

Nigerian nurses in the UK, US forced back home

United Kingdom universities face financial crisis
News5 days ago

United Kingdom universities face financial crisis

Chelsea Logo
Sports6 days ago

Chelsea struggling to offload five more stars to meet final transfer target

Goddess of Pop, Cher in talks to headline Glastonbury’s legends slot in 2025
Entertainment6 days ago

Goddess of Pop, Cher in talks to headline Glastonbury’s legends slot in 2025

Injury breaks Doheny's hopes against Naoya Inoue
Sports7 days ago

Injury breaks Doheny’s hopes against Naoya Inoue

I regret shredding my NCE certificate — Fatima Musa
News6 days ago

I regret shredding my NCE certificate — Fatima Musa

Pope calls for an end to extremism on Asian tour
News6 days ago

Pope calls for an end to extremism on Asian tour

Anthony Martial offered ‘biggest deal in club’s history’ after Manchester United exit
Sports6 days ago

Anthony Martial offered ‘biggest deal in club’s history’ after Manchester United exit

Katy Perry lambasted for her 'grotesque' justification for collaborating with Dr Luke
Entertainment5 days ago

Katy Perry lambasted for her ‘grotesque’ justification for collaborating with Dr Luke

Volvo
Automobile4 days ago

Volvo To Become Electric-Only Brand 2030

3,590 inmates on death row in Nigeria — NCoS
News6 days ago

3,590 inmates on death row in Nigeria — NCoS

Rivers State gets new NSCDC commandant
News5 days ago

Rivers State gets new NSCDC commandant

CAC warns unregistered PoS operators as the grace period expires
News4 days ago

CAC warns unregistered PoS operators as the grace period expires

Google Pixel 9 Pro XL facing touchscreen issues
Technology6 days ago

Google Pixel 9 Pro XL facing touchscreen issues

Chelsea star Noni Madueke responds to Enzo Maresca raising concern over his training performances
Sports7 days ago

Chelsea star Noni Madueke responds to Enzo Maresca raising concern over his training performances

Manchester United star reveals classy message from Sir Alex Ferguson
Sports5 days ago

Manchester United star reveals classy message from Sir Alex Ferguson

Acer presents new Vero PD2-series projectors with up to 18% more brightness than previous generation
Technology6 days ago

Acer presents new Vero PD2-series projectors with up to 18% more brightness than previous generation

Ford
Automobile4 days ago

Ford Can Now Show Advertisements In Cars

Mercury Prize Award 2024 winner revealed in emotional outpouring
Entertainment5 days ago

Mercury Prize Award 2024 winner revealed in emotional outpouring

Succession star’s ‘sinister’ horror film terrifies Netflix viewers
Entertainment4 days ago

Succession star’s ‘sinister’ horror film terrifies Netflix viewers

Hunter Biden pleads guilty as the tax evasion trial starts
News5 days ago

Hunter Biden pleads guilty as the tax evasion trial starts

Alex Unusual: I didn't leave social media because of AY pregnancy rumors
Entertainment3 days ago

Alex Unusual: I didn’t leave social media because of AY pregnancy rumors

Roy Keane makes prediction over Casemiro’s Manchester United future
Sports5 days ago

Roy Keane makes prediction over Casemiro’s Manchester United future

The reason I left Chelsea — Conor Gallagher
Sports4 days ago

The reason I left Chelsea — Conor Gallagher

Dangote Refinery
Business3 days ago

Dangote Refinery: NUPENG Vows Protection

UNICEF claims Primary healthcare can tackle 90% of diseases
Health5 days ago

UNICEF claims Primary healthcare can tackle 90% of diseases

Six inmates studying for PhD, 1,000 pursuing university degrees – NCoS
News4 days ago

Six inmates studying for PhD, 1,000 pursuing university degrees – NCoS

Certain traits and contentious behaviors James Bond can’t have anymore in 2024
Entertainment3 days ago

Certain traits and contentious behaviors James Bond can’t have anymore in 2024

Nancy Isime revealed her initial fear of fame
Entertainment3 days ago

Nancy Isime revealed her initial fear of fame

FG to construct blood collection facilities in 774 LGs
News3 days ago

FG to construct blood collection facilities in 774 LGs

Xiaomi POCO M7 Pro 5G in new pre-launch leak
Technology5 days ago

Xiaomi POCO M7 Pro 5G in new pre-launch leak

Dequantes Lamar popularly know as Rich Homie Quan, dies at 33
Entertainment4 days ago

Dequantes Lamar popularly know as Rich Homie Quan, dies at 33

Edo State Government suspends school resumption over fuel price hike
News3 days ago

Edo State Government suspends school resumption over fuel price hike

US Open: Jack Draper reveals what made him throw up on court
Sports3 days ago

US Open: Jack Draper reveals what made him throw up on court

Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69mm body
Technology4 days ago

Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69mm body

Guinness World Records acknowledged Cristiano Ronaldo "Greatest of All Time"
Sports4 days ago

Guinness World Records acknowledged Cristiano Ronaldo “Greatest of All Time”

ANE Billboard Hots