Vulnerability Details : CVE-2021-32825
Potential exploit
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.
Vulnerability category: Directory traversal
Products affected by CVE-2021-32825
- cpe:2.3:a:bblfshd_project:bblfshd:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32825
0.74%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 71 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-32825
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.5
|
MEDIUM | AV:N/AC:L/Au:S/C:P/I:P/A:N |
8.0
|
4.9
|
NIST | |
9.1
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
3.9
|
5.2
|
NIST | |
2.7
|
LOW | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N |
1.0
|
1.4
|
GitHub, Inc. |
CWE ids for CVE-2021-32825
-
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.Assigned by: security-advisories@github.com (Secondary)
-
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-32825
-
https://securitylab.github.com/advisories/GHSL-2020-258-zipslip-bblfshd/
GHSL-2020-258: ZipSlip vulnerability in bblfshd - CVE-2021-32825 | GitHub Security LabExploit;Third Party Advisory
-
https://github.com/bblfsh/bblfshd/commit/4265465b9b6fb5663c30ee43806126012066aad4
untar: add check on link · bblfsh/bblfshd@4265465 · GitHubPatch;Third Party Advisory
-
https://github.com/bblfsh/bblfshd/pull/341
Bugfix ghsl 2020 258 by david972 · Pull Request #341 · bblfsh/bblfshd · GitHubPatch;Third Party Advisory
Jump to