CVE-2021-31800

Multiple path traversal vulnerabilities exist in smbserver.py in Impacket through 0.9.22

published May 5, 2021

CVSS
—
EPSS
19%
Percentile
97.4
In the wild
Unconfirmed
What it is

⚠️ A sneaky path traversal vulnerability lurks in smbserver.py! An attacker can exploit this by simply connecting to a running instance, allowing them to access and modify files they shouldn’t be touching. 🔥 Think of it like a delivery driver who not only delivers packages but also opens your mailbox to remove or swap contents—dangerous, right? This vulnerability similarly allows attackers to navigate the system's folders and manipulate files without permission. By leveraging this vulnerability, an attacker could list and write to arbitrary files, potentially replacing critical system files like /etc/shadow or SSH authorized keys. This unauthorized access could lead to arbitrary code execution, putting the entire system at risk and compromising sensitive information.

Put simply

Think of it like a delivery driver who not only delivers packages but also opens your mailbox to remove or swap contents—dangerous, right? This vulnerability similarly allows attackers to navigate the system's folders and manipulate files without permission. The issue stems from multiple path traversal vulnerabilities in smbserver.py in Impacket up to version 0.9.22. It enables attackers to use '../' sequences to navigate directories and access unintended files.

What to do

By leveraging this vulnerability, an attacker could list and write to arbitrary files, potentially replacing critical system files like /etc/shadow or SSH authorized keys. This unauthorized access could lead to arbitrary code execution, putting the entire system at risk and compromising sensitive information. To mitigate this risk, update to the latest version of Impacket where this vulnerability has been addressed. Additionally, ensure that proper access controls are implemented on your smbserver instances to restrict unauthorized connections. You've got this! With the right updates and controls in place, you can keep your systems safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.19409 · 97.4th percentile
Published
2021-05-05T10:24Z
EPSS history
Timeline
  • 05 MAY 10:24Z
    Multiple path traversal vulnerabilities exist in smbserver.py in Impacket through 0.9.22
    cvelistv5