CVE-2021-32825 ZipSlip vulnerability in bblfshd
Attackers can exploit unsafe symlink handling in archive unpacking to read or write arbitrary files outside the target directory.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-32825?
CVE-2021-32825 is a low-severity path traversal vulnerability in bblfshd, published on 16 Aug 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
bblfshd is an open source self-hosted server for source code parsing. In bblfshd before commit 4265465b9b6fb5663c30ee43806126012066aad4 there is a "zipslip" vulnerability. The unsafe handling of symbolic links in an unpacking routine may enable attackers to read and/or write to arbitrary locations outside the designated target folder. This issue may lead to arbitrary file write (with same permissions as the program running the unpack operation) if the attacker can control the archive file. Additionally, if the attacker has read access to the unpacked files, he may be able to read arbitrary system files the parent process has permissions to read. For more details including a PoC see the referenced GHSL-2020-258.
Which versions are affected by CVE-2021-32825?
It affects 1 product.
Products include Bblfshd Project Bblfshd.
How do I fix CVE-2021-32825?
No fix has been published for CVE-2021-32825 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-32825 being exploited?
There is no known exploitation of CVE-2021-32825 in the wild and no public exploit code.
Sources
Also known as GHSA-63p8-63ff-xr65.