Vulnerability · Published Aug 16, 2021 · Assigned by GitHub_M
CVE-2021-32825ZipSlip vulnerability in bblfshd
Low 2.7
In plain English
A low-severity security flaw in bblfshd from bblfsh. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities).
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.
Affected products (as reported)
Weakness: CWE-23 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
References
- https://securitylab.github.com/advisories/GHSL-2020-258-zipslip-bblfshd/ x_refsource_CONFIRM
- https://github.com/bblfsh/bblfshd/pull/341 x_refsource_MISC
- https://github.com/bblfsh/bblfshd/commit/4265465b9b6fb5663c30ee43806126012066aad4 x_refsource_MISC