CVE-2022-44900

A directory traversal vulnerability in the SevenZipFile.extractall() function of the python library py7zr v0.20.0 and earlier allows attackers to write…

Critical · published December 6, 2022

CVSS v3.1
9.1
EPSS
2%
Percentile
84.3
In the wild
Unconfirmed
What it is

🚨 A sneaky directory traversal in py7zr lets attackers extract files anywhere they want, just by tampering with a 7z file! 🔥 Think of it like a delivery driver following an incorrect address — they end up leaving packages in all the wrong places! In this case, the function doesn't check where it's dropping off files, leading to chaos. An attacker could exploit this vulnerability to write arbitrary files on your system, potentially overwriting critical configurations or even planting malicious scripts! This could lead to unauthorized access or complete system compromise, making it absolutely devastating for your security.

Put simply

Think of it like a delivery driver following an incorrect address — they end up leaving packages in all the wrong places! In this case, the function doesn't check where it's dropping off files, leading to chaos. This directory traversal vulnerability in the SevenZipFile.extractall() function allows attackers to manipulate file paths in crafted 7z files, resulting in arbitrary file writes outside intended directories.

What to do

An attacker could exploit this vulnerability to write arbitrary files on your system, potentially overwriting critical configurations or even planting malicious scripts! This could lead to unauthorized access or complete system compromise, making it absolutely devastating for your security. Update py7zr to version 0.21.0 to patch this vulnerability immediately. Additionally, audit the use of this library in your applications to ensure no untrusted files are processed. Consider implementing file path validation to bolster security further. You've got this! With these steps, you'll be securing your system in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.02465 · 84.3th percentile
Published
2022-12-06T00:00Z
EPSS history
Timeline
  • 06 DEC 00:00Z
    A directory traversal vulnerability in the SevenZipFile.extractall() function of the python library py7zr v0.20.0 and earlier allows attackers to write…
    cvelistv5